HP Prime - Suggestion: Leading zeros.

Hopefully this is an appropriate place for this post.
One of the most annoying aspects of the Prime is the way it strips off leading zeros from numbers.
This results in "0.791" being displayed as ".791". To my mind, this is ugly and, as I said, annoying.
So my suggestion is to add an option to force the leading "0" to always be displayed in this case.
I assume this would be fairly easy to implement given that there are already a few other supported output formats.

Hi,
I suggest you place your request on this forum:
http://www.hpmuseum.org/forum/forum-5.html
Note: I do not work for HP, I just like playing with calculators :-)

Similar Messages

  • IR - Column with leading Zeros issue

    Hello,
    I've got an IR report which includes as "default report settings" 1 column with leading 0s. In order to export to Excel that column as text rather than as a numeric I followed a workaround proposed before in this forum (excel copy drops leading zeros
    In essence this workaround is to create an identifical column but in "excel text format" and display the columns depending on the request value: INSTR(NVL(:REQUEST,'YABBADABBADO'),'CSV') <> 0 for example.
    This works just fine for the default report.
    The problem arise when a user creates his own customise report that includes the mentioned column and saves it as a named report. Here, when the results are exported to excel the "excel" column does not appear.
    In fact, just hiding one of the displayed columns produces the same undesired result.
    I would appreciate any comments or suggestions.
    Many thanks
    Edited by: Javier Gil on Jul 20, 2010 7:52 AM

    I have found a better method. In your IR query:
    SELECT LPAD(v.vendor, 7, ' ') vendor,
    /*Just LPAD to a length of the column defined in the database table or to 7, whichever is greater. */
    FROM v, r
    WHERE v.VENDOR = r.VENDOR
    AND date_rcv <= to_date(:P150_CUTOFF,'yyyy/mm/dd')
    AND inv_nbr = ' '
    AND to_stores <> 'T'
    AND (V.VENDOR = RPAD(:P150_VENDOR,10,' ') OR :P150_VENDOR = 'ALL')
    When you download to Excel by Download/XLS (Request=XLS), it preserves the leading zeros.
    In the case of dates, you should LPAD 10 minimum in this format.
    LPAD(to_char(date_rcv,'MM/DD/YY'), 10, ' ') date_rcv,
    I haven’t tried it yet but I think in the case of ‘MM/DD/YYYY’, you should LPAD 12 minimum in this format.
    LPAD(to_char(date_rcv,'MM/DD/YYYY'), 12, ' ') date_rcv,
    Drawbacks of this method:
    Since the string has leading white spaces, you cannot use the filter for the ‘=’ comparison operator. Even filtering using leading white spaces will not return anything. You must use the LIKE and NOT LIKE operator instead.
    Advantages of this method over the original one I posted yesterday:
    1)     You do not have to create another column for download, just one column will suffice.
    2)     Even though the query has leading white spaces, they will not display in the IR region.
    Edited by: richardlee on Aug 5, 2010 11:10 AM
    Edited by: richardlee on Aug 5, 2010 11:16 AM

  • How to retain leading zeros in module pool screen

    Hi experts,
    I have a ztable field of type NUMC4 being displayed on a module pool screen, the value in the field is '0001', but on the screen it displays value as '1' (without leading zeros), When I save the record, Even in the databse it stores as '1'.
    But I have checked in debugging the field always contains '0001' in the program execution and I have also used 'CONVERSION_EXIT_ALPHA_INPUT' in the PBO but no use.
    Pls suggest.
    Thanks,
    Deepak

    Check the screen attributes for the field. There is an option to show leading zeroes.
    edit.
    And how did you see it was stored a 1 and not 0001? Using SE16N? Mind you: with SE16N conversion-exits are executed automatically thus showing 0001 as 1.
    To make sure: double click on the record in SE16N and look if it's still 1 and not 0001.

  • Remove Leading zeros for Material in Transformation

    Hi Experts,
    I'm using DTP first time. I don't have much exp on DTP & Transformations.
    I'm creating infocube with some objects. I want to remove leading zeros for zmaterial.
    In 3.x writen update routines as fallows:
    data: zmat(18) type c.
    zmat = COMM_STRUCTURE-/BIC/ZMAT.
    shift zmat left deleting leading '0'.
    result value of the routine
      RESULT = zmat.
    I'm confusing in Transfermation where to write this routines.
    I'm writing in Transformation as fallows:
    data: zmat(18) type c.
    zmat = SOURCE_FIELDS-/BIC/ZMAT.
    shift zmat left deleting leading '0'.
    RESULT = zmat.
    But it's getting remove zero's.
    Anybody suggest on this.
    Siri

    Dear Sir,
    No confusion at all.
    Just double click on the Target Infoobjct i,e Material object in Transformation, you will see a wizard popping up.
    There you will see a option called "RULE TYPE" and the default value will be "Direct Assignment". In the same check box click on the drop down icon and select "Routine".
    The moment you select the routine option, it will open up ABAP workspace where in you can write your routine and get the desired result.
    Hope it helps.

  • Trouble adding leading zeros to numbers in PowerShell script

    I am new to PowerShell scripting (so have mercy on me please!), and I'm trying to write a script that takes simplified, menu-based user input to create a folder on the network named based on a month number and the year. The month must be expressed as a two-digit
    number, but I'm trying to make it simple enough that the user only needs to input a one-digit number (for the first nine months of the year) and have the script add the leading zero (for example, if a user inputs the number "2" for February, the
    script will output "02").
    Here is a portion of my script:
    # Get current year
    $year = Get-Date -Format yyyy
    # Provide menu of months for user to choose from
    Write-Host "Choose the name of the month for the folder you want to create."
    Write-Host "1. January"
    Write-Host "2. February"
    Write-Host "3. March"
    Write-Host "4. April"
    Write-Host "5. May"
    Write-Host "6. June"
    Write-Host "7. July"
    Write-Host "8. August"
    Write-Host "9. September"
    Write-Host "10. October"
    Write-Host "11. November"
    Write-Host "12. December"
    Write-Host " "
    Do {
    $mNum = Read-Host "Select the number of the month (1 - 12): "
    # Convert the menu item to the month name
    switch ($mNum)
    1 {$month = "January"}
    2 {$month = "February"}
    3 {$month = "March"}
    4 {$month = "April"}
    5 {$month = "May"}
    6 {$month = "June"}
    7 {$month = "July"}
    8 {$month = "August"}
    9 {$month = "September"}
    10 {$month = "October"}
    11 {$month = "November"}
    12 {$month = "December"}
    default {"Invalid entry. Please select a number from 1 - 12 (without the trailing period)."}
    # Validate user input. Current code is cumbersome; try to find more elegant method.
    While ($mNum -ne 1 -and $mNum -ne 2 -and $mNum -ne 3 -and $mNum -ne 4 -and $mNum -ne 5 -and `
    $mNum -ne 6 -and $mNum -ne 7 -and $mNum -ne 8 -and $mNum -ne 9 -and $mNum -ne 10 -and `
    $mNum -ne 11 -and $mNum -ne 12)
    # Add leading zeros to month number
    $fNum = "{0:D2}" -f $mNum
    Write-Host $fNum
    When I run it, I don't get the leading zero. However, when I create a very basic script, it seems to work:
    $mNum = 3
    $fNum = "{0:D2}" -f $mNum
    Write-Host $fNum
    Can anyone offer any suggestions as to what I might be doing wrong?
    Also, if anyone has a suggestion on how to better validate the user input (making sure they enter a number between 1 and 12), I would appreciate that as well.

    .NET formatting is a complicated subject
    http://msdn.microsoft.com/en-us/library/26etazsy(v=vs.110).aspx#FormatStrings
    I'm not sure how all that documentation applies when you attempt to format a value that is already a string.
    In general, formatting is described as "Formatting is the process of converting an instance of a class,
    structure, or enumeration value to its string representation".  If it is already a string I'm not sure what to expect.
    For example,
    <# C: #> '3',3,'03',03,'003',003 | % { "{0:D2}" -f $_ }
    3
    03
    03
    03
    003
    03
    <# C: #>

  • Adding leading zeros to the display data

    hi folks,
    I have the character variable of size 9, if I get the value of the variable less than 9, I need to add leading zeros to it accordingly before displaying the numeric value stored in it. I tried to use the 'SHIFT' command for that it did not work out.
    here is the code..
             data: len type I,
                   amount type C,
                   addspace len type I.
              len = strlen( amount ).
              write: ' the length of the string',len.
               if ( len < 9 ).
               addspace = 9 - len.
               write: addspace.
    SHIFT amount BY addspace Places LEFT.
    Thanks in advance.

    Hi Santhosh,
    All the suggestions here will work. Make sure that your number is on the right justified to your character field. Here is an example.
    DATA: v_char09_left_justified(09)  TYPE c,
          v_char09_right_justified(09) TYPE c,
          v_numc09(09)                 TYPE n.
    START-OF-SELECTION.
    *-- in case the value is left justified in the field
      v_char09_left_justified = '9        '.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
                input  = v_char09_left_justified
           IMPORTING
                output = v_char09_left_justified.
      WRITE:/ 'V_CHAR09_LEFT_JUSTIFIED from FM =', v_char09_left_justified.
      v_numc09 = v_char09_left_justified.
      WRITE:/ 'V_NUMC09 =', v_numc09.
    *-- in case the value is right justified in the field
      v_char09_right_justified = '        9'.
      SHIFT v_char09_right_justified LEFT DELETING LEADING space.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
                input  = v_char09_right_justified
           IMPORTING
                output = v_char09_right_justified.
    WRITE:/ 'V_CHAR09_RIGHT_JUSTIFIED from FM =', v_char09_right_justified.
      v_numc09 = v_char09_right_justified.
      WRITE:/ 'V_NUMC09 =', v_numc09.

  • Need formula to take text from one cell, add that to a serial number with leading zeros

    I'm trying to create a spreasdheet cell that simplifies creating videotape Numbers from a job name in cell and appends a serial number with leading zeros, and that would survive an export to EXCEL.
    The result would look like
     A Column
    Job Name
    B ColumnTape #
    Formula needed for B
    ClientName-TapeType-
    ClientName-TapeType-001
    =
    ClientName-TapeType-
    ClientName-TapeType-002
    =
    I've tried using a custom cell format that had the text in front of the (Integer) drag and drop, with three integers and leading zeros.
    That worked, but requires recreating the custom cell format for each client and tape type.
    So, I've used the formula =A2& in order to play around with different things, but haven't hit on something that adjusts for increased numbers and retains the leading zeros.
    I don't mind doing a starter for the first row and then adding +1 in the formulas for the rows below.
    I've done that using the custom cell formats for the first B cell and then using =Bx+1 in the following cells.  It works, but I'm hoping to find something simpler or that can be copied and pasted in multiple rows on one paste.
    Thanks in advance.
    Suggestions much appreciated!
    Ted

    Ted,
    This expression in B will give you the pattern I believe you are looking for:
    =A&RIGHT("00"&ROW()-1, 3)
    Here's a screen shot...
    Jerry

  • Problem in XSL mapping with leading zero's

    Hi ,
    i am facing a problem in disigning a XSL mapping where one of the source field (type string ) ,and I need to remove the leading zero's to map it to target.
    we have format-numer ,but It is not working in this case ,may be because of type string.
    and the replace command is not supported .
    So can any one suggest me some way to resolve this xsl problem.
    Thanks,
    Raju.

    I write an example
    xsl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <xsl:template match="/">
              <doc>
                   <xsl:apply-templates/>
              </doc>
         </xsl:template>
         <xsl:template match="source_field">
              <source_field>
                   <xsl:call-template name="remove_leading_zeros">
                        <xsl:with-param name="value" select="."/>
                   </xsl:call-template>
              </source_field>
         </xsl:template>
         <xsl:template name="remove_leading_zeros">
              <xsl:param name="value"/>
              <xsl:choose>
                   <xsl:when test="starts-with($value, '0')">
                        <xsl:call-template name="remove_leading_zeros">
                             <xsl:with-param name="value" select="substring($value, 2)"/>
                        </xsl:call-template>
                   </xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="$value"/>
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
    </xsl:stylesheet>
    to test:
    input xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <doc>
    <source_field>000000123456</source_field>
    <source_field>0987654</source_field>
    </doc>
    output xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <doc xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <source_field>123456</source_field>
         <source_field>987654</source_field>
    </doc>
    hope can help you.
    regards
    Bin

  • SD Document flow with Leading zeros

    Hi All,
    We have issue with docuemnt flow, when we click document flow sales order or delivery or billing its showing leading zeros, My client  don't want any leading zeros in docuemnt flow.
    For example -
    if i click on document flow its showing - 00500005 (SO ) 008000674 -Delivery - - Billing - 0090000012,
    Can any other guide us what could be a issue with leading zeros or any config setting is missing.
    Regards
    Nishad

    dear friend,
    it depends on how do you set up the number ranges
    for example, run VN01 and look how your sales orders are numbered.
    regards,
    p.s. create a new number range without leading zeroes and test it
    but i suggest you will not change the current settings , it is 'too late' , so tell your client it is standard

  • Report Builder: output to Excel removes leading zeros

    I'm trying to use the Report Builder to output a numeric
    field to EXCEL , but on numbers that start with zero EXCEL removes
    the leading zero's. ex. 00123 becomes 123.
    Is there something that I can put in the expression builder
    on the field to overcome this.
    I've tried concatonating a single quote on the front of the
    field but the single quote shows up on the output. I've tried this
    on both the SQL and on the expression builder.
    I've read on some of the posts where people have tried using
    'mso-number-format:"\@'" within a TD tag but I can't seem to get
    the syntax right inside the Expression Builder.
    Has anybody got any suggestions?

    Excel will remove leading zeros in a numeric field because it is treating the column as numeric. Putting a ' in front of the number forces Excel to treat the column as text.

  • Leading zeros are not carried from the pivot table to exported Excel (9927815)

    Hello All -
    I am just wondering if there is a fix available for -- Leading zeros are not carried from the pivot table to exported Excel (9927815)
    can anybody suggest when it will be fixed and if there is any-workaround for this issue if there is no fix available.
    Thanks
    Ram

    Thanks Timo -
    Studio Edition Version 11.1.1.2.0
    About
    Oracle JDeveloper 11g Release 1 11.1.1.2.0
    Studio Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.2.36.55.36
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.2.36.55.36
    I will check on support.oracle.com

  • Leading zeros getting truncated in plsql report

    Hi,
    I've a requirement of a plsql report with an excel output. When i see the output in excel, the leading zeros get truncated. Is there any suggestion for this, other than enclosing within ' '. Because this particular solution prints the output along with quotes which is not acceptable. Please help me with this.
    -Divya Goteti

    Just prefix with =" and " at teh end of column. like
    select '="' || bank_account_no || '"' from employee_bank_list
    but if you are using same report for pdf also then use decode in pre/postfix.
    Imran

  • Htmldb_item.text - show leading zero

    Hi,
    I've a report build up with the following query:
    select htmldb_item.text(1, to_char(num1, '9990D99'), 5, 5,'style="text-align:center"') num1
    from test1
    union all
    select htmldb_item.display_and_save(1, to_char(sum(num1), '9990D99'),5) num1
    from test1
    There are some numbers shown and at the end the sum of them. If the sum has a leading zero it is shown as 0.25, but for the value in the textfield is only shown 0 with to_char() - formatting, without it is shown .25 . What can I do to show there also 0.25. It seems to ignore my format given in the select.
    Thanks
    chrissy

    They give us this formatting option, and many more, in Numbers '09. My suggestion for your case if you wish to stay with '08 would be to not format the cells as percentage, but to multiply them by 100 to make them a percentage without displaying the percent sign. You could then label the column to clarify the situation.
    Jerry

  • MF50 deletes leading Zero's from the material number.

    We have a case where we have alpha-numeric material numbers that include some leading zero's. MF50 in it's released format automatically truncates leading zero's. In our case these leading zero's are required only for alpha-numeric material numbers.
    Looking on OSS I see multiple notes relating to this issue. Any suggestions to fix this problem would be appreciated.
    Jesse Cornelison

    change data type(char)   to type  n.
    make  a variable  of  type  n  and  store  kunr  value  to  this  variable  and  display  this  variable.

  • No leading zeros in the assignment field on a billing doc header

    Can someone tell me how I can get the assigment field in a billing doc not to show any leading zero's so when the assigment field is populated in the accounting doc it will not show the zeros either .
    At the moment I have the sales order PO set in copy control to show in the reference field and the assigment field of the billing doc header but need it to show no leading zeros in the accounting doc even if there is some in the SO.
    I.E
    sales orde PO no              Assignment field in billing doc             accounting doc
    0000012345                      0000012345                                        0000012345
    i need it to show NO zeros
                                               12345                                                  12345
    any ideas

    check this thread
    VBRK-XBLNR not copied to BKPF-XBLNR in transaction VF11.
    Note: Pls Text Removed
    Edited by: Lakshmipathi on Nov 1, 2011 10:42 AM
    Please dont ask for points in each of your suggestion and deviate the forum rules

Maybe you are looking for

  • Can't seem to change my email

    I am trying to change my mail email in my account. The current email is no longer available to me. I've tried setting up the new email I get a message that says "Your account changes couldn't be saved." And then I get a new screen that says "FOR YOUR

  • Photoshop CS6 has out of memory errors under Mac OS X 10.7.4

    Has anyone who has a 2008 MacBoo Pro with the NVIDIA GeForce 8600M GT 512 MB graphics card tried running Photoshop CS6 under Mac OS X 10.7.4? On my MacBook Pro, PS CS6 launches; however, any action results in an out of memory error.  The CS6 versions

  • InDesign CS4 repeated crashes

    Hi We have been using InDesign CS4 for several months now, and suffer repeated crashes.  Our systems support contractors have looked at the network, and say its a software issue.  Running it on 2 PCs, Windows 7 OS. Initaially we thought it was networ

  • HOW TO RESTRICT DISCARD BUTTON AT R12 INVOICE LINES TAB?

    Hello Can someone tell me how to lock/restrict the DISCARD Button at the Invoice Lines tab? thanks emgee

  • Can't Read Configuration...

    I have an Airport Extreme.. (not the new GBit one), and can't get to the point of being able to read the configuration. I've reset it by holding the reset button in for 5 seconds, and when attached to my cable modem, I can access both the Base Statio