Incorrect number format appearing in report

This might sound like a really silly question, but I've not had much need to faff around with changing number formats.
We have a report which is taking a number column and outputting it directly, but when the number is something like 0.1234 it strips the 0 and outputs it as .1234.
I imagine that this is something to do with the nls-settings of the client producing the report, but I need to make sure it outputs the value as 0.1234
I've come up with the following, but I'm not sure that it's the simplest solution:
SQL> select to_char(1235.234,'fm9999999990.9999999999') from dual;
TO_CHAR(1235.234,'FM99
1235.234
SQL> select to_char(4.2333, 'fm9999999990.9999999999') from dual;
TO_CHAR(4.2333,'FM9999
4.2333
SQL> select to_char(.3992, 'fm9999999990.9999999999') from dual;
TO_CHAR(.3992,'FM99999
0.3992It seems to work, but seems a bit OTT to me - like I'm using a big JCB digger truck to dig a hole so I can plant a tulip bulb.
Are there any better solutions out there?

Actually, I've just kicked off the PL/SQL procedure that produces the report (as a text file, via utl_file) from my machine, and the output is the same - 0.1234 is output as .1234.
Hmm, and:
SQL> select 0.1234 from dual;
    0.1234
     .1234Question is, is there a simpler/more elegant way of getting the missing 0 displayed than what I've already come up with? (I don't like it much because it assumes that there won't be more than the specified number of digits before and after the decimal point. It's unlikely that there would be, but even so...)

Similar Messages

  • How to change number format in web reports

    Hi, Experts,
        Simple question, if I want to change the number format on web report as following
    . . . . . . . . Actual
    . . . . . . . . *1000SGD 
      new order   .   341.5
      sales       .   567.45
    if I click "Actual" then select properties, set data format from "in 1000" & "0" to "in 1" & "0.00", nothing changed in web report after refresh.
    if i click one number (for example: 341.5) or "New order" to set data format from "in 1000" & "0" to "in 1" & "0.00", only this row's format is changed, others row still keep old format.
    how to change whole column's data format at once setting?
    thanks in advance.
    Message was edited by: jie miao
    Message was edited by: jie miao

    Hi,
    Logout and login may help you and also Delete the session in SM04  before re login. Some times system will not do complete refresh of data even though you select refresh button.
    With rgds,
    Anil Kumar Sharma .P

  • Oracle driver error [-87] incorrect number format

    Hi my friends
    In my web application with ora10g r2 this message error occur after a read statement in cds001c table
    I/O function: F, mode: 0, on file/table: CDS001C index: 1 =
    ORACLE Driver Error [-87]: Incorrect number format.
    ORACLE Driver Error [-59]: Preprocessing input data failed.
    ORACLE Driver Error [-35]: Fetch driver function failed.
    what the cause of this error?

    Your web application is what application (including version) running on what operating system using what application server?
    The message you have posted has nothing to do with the Oracle database.

  • How to globally modify number formatting in Crystal Reports

    How do I globally modify the number formatting in Crystal Reports to NOT use the default which is “System Default Number Format”? The goal is to modify the number formatting to NOT contain commas. This modification should be global and should apply to any local account that will launch and use Crystal Reports on the server where it is installed. Can anyone help?

    Hi Raghavendra,
    For new reports, we have tried the setting you specified.  The question is, how can we force Crystal Reports to “keep” and “retain” the adjusted format globally every time users create a new report?
    Thank you!
    Ivy

  • Number formatting in Webi report

    Hi All,
    Is it possible to do the same below format in webi report
    10
    100
    1'000
    10'000
    100'000
    1'000'000
    SAP BW is a data source.
    Regards,
    Senthil K.

    Hi,
    Thanks for your reply.
    Actually customer wants to display the values above format so,
    Is there any possibility to achieve this in webi report level.
    Regards,
    Senthil k

  • Incorrect date format in excel reports

    Hi,
    Some Activity exported from Activity overview to excel have wrong date format. For example
    Some have 21/04/2008 u2013 Correct
    Some have 13/04/09 u2013 Incorrect
    All the dateu2019s in the database seems to be correct like '2008-04-13 00:00:00.000'.
    Client is using SAP B1 2005 SP01 PL-48. Is there any know issue?
    I tried the same in B1 2007 upgrading the database. All the date seems to be correct when I export it here.
    What may be the reason?
    Any suggestions will be appreciated.
    Regards,
    Mohan

    Hi Gordon,
    It took some time for me to verify in the client machine.
    I have changed the date format in both Business One and in the regional settings to DD/MM/YY. It seems to be ok however the appearances of date column in excel seems to be uneven.
    04/10/09
    04/11/09
           13/04/09
           14/04/09
           19/04/09
    (Ignore the *)
    I think, the problematic dates seem to be exported to excel in the paste special text format.
    Any Idea why this is happening?
    Regards,
    Mohan
    Edited by: Mohanakrishnan T on May 5, 2009 1:09 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:10 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM

  • Incorrect date format in Crystal Report XI

    I have a problem with date in reports if Day in date (yyyy/mm/dd) less than 12.
    Problem is:
    I create a report (through application). If I check the instance of the report created on Crystal Server (in Central Management Console) it's correct. If I try to download (open or save) this report to workstation (through application) Day and month changed places and date become incorrect.
    Any attempts to play with regional settings in workstation did not help.
    What is the problem here and how I can resolve the issue?
    Any advices will be appreciated.

    Hi,
    Ok, here a link for an update maybe it helps
    [Click here|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    Regards,
    Clint

  • En-CA Language has incorrect Date Format in SSRS report

    When I set the Language on a Report to "en-CA", then dates are formatted as dd/mm/yyyy.
    This differs from the OS default format of yyyy-mm-dd for en-CA.
    Is there any way to tweak the date format for a specific Language in SSRS?
    Please don't say I need to add Format() calls to all of the dates in the reports...  What I want to do is just give SSRS the correct date format for "en-CA" and let it do the work of formatting automatically.
    [url=http://www.spritehand.com]www.spritehand.com[/url] | [url=http://www.andybeaulieu.com]www.andybeaulieu.com[/url]

    Hi Andy,
    In Reporting Services, by default, formats for date are determined by the report server language at run time. The report server language is the language of the operating system on which the report server is installed. This language is determined by the regional
    settings of the computer.
    Generally, the report server language supports for all ten of the SQL Server languages. But the en-CA language is not supported by SQL Server. In this way, the report server uses the mostly closely matched language of the operating system as the language.
    For example, the operating system is Canada English. Because Canada English and U.S. English are in the same language family, it chooses the SQL Server language resource that most closely matches Canada English (in this case U.S. English). So the date format
    uses en-US format.
    Reference:
    http://msdn.microsoft.com/en-us/library/ms156493.aspx
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Solved: Pick Number format mask

    Hello,
    I'm trying to format all my numbers to a specific model:
    999G999G999G999G990D00
    I tried doing it like I did with 'PICK_DATE_FORMAT_MASK', where I define my format under
    "Application Attributes>Definition". I called it PICK_NUMBER_FORMAT_MASK'.
    It didn't work and i got the next error above my report:
    report error:
    ORA-01481: invalid number format model
    I also tried to define an application item with the value: 999G999G999G999G990D00
    but then I get the same error. If I paste my number format in my report column under Number / Date Format then it works perfect. But I can't change the global format of my numbers now.
    Can anyone help me?
    Thanks in advance.
    Regards,
    Oli

    <p>Oli,</p>
    <p>As you already discovered there is no PICK_NUMBER_FORMAT_MASK substitution variable like there is for date pickers. Perhaps this a nice enhancement request. However, there are some workarounds:
    <ul><li>
    <p>For reports, you can use your PICK_NUMBER_FORMAT_MASK if you convert the NUMBER columns into VARCHAR2 columns like this:<BR>
    <p>to_char(number_column,'& PICK_NUMBER_FORMAT_MASK.')</p></li>
    <li><p>Use ApexLib and extend the firefox plugin with your own numeric settings.</p></li>
    <li><p>You can use the user interface defaults (table defaults, column defaults) in the shared components section of your application.</p></li>
    </ul>
    <p>With kind regards,</p>
    <p>Jornica</p>

  • When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported.  Is this a bug in Mavericks?

    When I check my boot SSD drive using Disk Utility under Mavericks, I often get "Incorrect number of extended attributes" errors.  But if I boot off an external drive and check the same SSD, no errors are reported. 
    This happens not just with the SSD in my Mac Mini, but with another SSD in my MacBook (both now running Mavericks).  So far as I know, all of the kit I am using is in good order (despite the file corruption reports).  So I am beginning to wonder if it could be due to a bug in Mavericks?  Both SSD drives have been formatted to MacOS Extended (journaled) format.  Should I have used a different format, I wonder?
    Has anyone else encountered this issue?
    Does anyone have a solution?
    Or an explanation that might help my investigation of the issue?
    Thanks guys,

    I understand that the Corsair Force 3 is not one of the SSD drives that are supported on Apple Macs. 
    I did try downloading and using Trim Enabler, but the error message came up both when it was off and when it was on.
    I understand that not everyone thinks Trim Enabler is a good program, though there is a new version out now, so I may give it another try.

  • COPA line item report, Number format  -output type - object list(ALV).

    Hi,
    I am preparing COPA line item report. I want to change number format (two decimal place). I did the changes in form level then I did the changes in drill down report as well and saved as save definition.
    But changes are not reflecting in- output type - object list(ALV).
    Please provide help in this.
    Regards

    HI
    What t-code you are using to write this line item report ?

  • Problem with the number format in the graph axis with Report Generation Toolkit.

    Hi!
    I'm trying to use the Report Generation Toolkit to plot some graphs in Excel.
    My first problem is that I don't know how to configure the number format in the Excel Set Graph Font.vi so that my numbers are correctly displayed in the graph's axis. The only given option is general (0,0) but this is not enough for me, my numbers can get really small so I need engineering notation or fraccional format.
    Second: I also insert a table with the graph source data, but the numbers are not correctly displayed either: for example: 
    0,75 is shown as: 
    0,750000
    but 1,25  is shown as: 
    1!250!000
    My guess is I am making to much or wrong string to number conversions or Excel is getting it wrong but I can't find my way...
    Can someone help me with this?
    Thanks,
    Isabel

    Here is my VI, it's just a trial so it can look messy...
    Thanks,
    Isabel
    Message Edited by Isa_pm on 01-22-2007 01:12 PM
    Attachments:
    Create report.vi ‏96 KB

  • Number Format was missing in XML report

    In the RTF report template, I formated all data by MS word and had number format like #,##0.00, then I reviewed the PDF output in local with the XML data, and it displayed in the correct format. But when I ran the same report by concurrent program in EBS, I found some data missing the format, e.g
    The number should be "123,456.00", but it became "123,456."
    It's strange that this happen sometimes, I don't know if it is a bug..
    Please give me a hand, thanks a million.
    Regards,
    Sak
    Edited by: user12879455 on 2010-4-29 下午7:23

    Hi.
    Maybe your XML output from concurrent request is influenced by settings for "ICX: Numeric Characters" profile option. I have similar issue now as well...
    T.

  • If a Custom field is defined as Text in Project Server, but is actualy a number field, is it possible to number format it in a report (BI)?

    The users have defined the field as Text, and now the field contains data, so it is not possible to change the type.
    While including the field in the Report and choosing number format, it is not getting formatted (for example, if I want seperators like a comma for thousand).
    Is it possible?
    Thanks in advance.

    Hi,
    I don't think so you can directly format a text field as number in SSRS.  For doing this first you have to convert your text field into Integer or Decimal (whatever is your requirement) into SQL query.
    Then using SSRS textbox properties you can define the number format also can use the 1000 separator from SSRS then.
    To perform this, I have created a "Test" table with 2 columns only "ProjectName" varchar(50) and ProjectDuration Varchar(9).
    Then using SQL query first I converted ProjectDuration datatype from Varchar to INT using below query
    SELECT     ProjectName, CONVERT(int,ProjectDuration) ProjectDuration
    FROM         Test
    Then using SSRS interface changed the ProjectDuration tect box property like this
    That's all I am getting below desire result
    Hope this helps you and let me know in case have any doubts.
    Thanks !!!
    Sachin Vashishth MCTS

  • Destination number format incorrect error message

    I have recently upgraded to a 5c from android and for some contacts, even iPhone numbers, can't send a message. Keep getting destination number format incorrect. Happens even after I edit contacts data

    Hello anglojax65,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning Messages issues:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

Maybe you are looking for

  • How to store configuration data from clusters to TDMS files

    It is a common use case to write measured data to a TDMS file, while the configuration information for your test is stored in a cluster (and that cluster might contain additional clusters, arrays etc). TDMS does not have native support for clusters a

  • Tranfer music from one ipod to another ipod

    i got a new

  • Steve, why is xmldom.writetoclob so slow ??

    I am using xmldom.writetoclob, which is OK when transfering small ( < 1MG ) documents to a CLOB, but as the documetns get bigger it is very slow.. It takes 15 minutes to transfer a 5MB document to a clob using xmldom.writetoclob. Anything I should be

  • SAP NW PI license issue

    Hello, I installed PI70 some time back and ordered SAP for license key. But, due to issues i have to re-install it later. What happened here is the hardware key is changed after the installation. Is it means i have request again SAP to get license ke

  • TS1398 useless for me

    i've tried all the solutions above but didn't work for me, my iphone still doesn't accept my router password,i guess it's a bug in the latest ios version i dont know why the specialists and responsible crews dont pay any attention about this problem,