Number Format Help

I can't seem to figure this out. I have numbers in the
following formats:
5.00
5.76
6.894
I would like to format the numbers like this when they are
displayed on the page:
5
5.76
6.894
Which function do i use? I tried number format and it keeps
rounding the decimals. I feel like an idiot but i can't seem to get
it to work.

try #val(n)#
I'd have expected 5.00 to displays as 5 as a matter of
course, so it's probably being treated as text...

Similar Messages

  • Number formatting - Help Please!

    Hi
    I have two problems.
    1:
    I am converting a float eg(-42) to a Float using "new Float(float val)". The resultant Float is positive (42), any ideas?
    2:
    I have a Double eg(8000) and want to display it as 8,000. Is there any way I can do this using NumberFormat for example?
    Thanks

    Hi
    I have two problems.
    1:
    I am converting a float eg(-42) to a Float using "new
    Float(float val)". The resultant Float is positive
    (42), any ideas?
    2:
    I have a Double eg(8000) and want to display it as
    8,000. Is there any way I can do this using
    NumberFormat for example?
    ThanksWhat about -
    NumberFormat numForm = new NumberFormat.getInstance();
    numForm.format(yourValue);

  • HELP: Strange Number Formatting Issue

    G'day All,
    I have a stored procedure which is available via the web which generarates a customer report. I've just noticed that my number fields that have decimal values are being rounded to the nearest whole number.
    The SQL that grabs the data to be used in generating this specific table uses TO_CHAR(decimal_field, '9990.00') etc a number of times. example values are:
    0.27 becomes 0.00
    45.44 becomes 45.00
    I've double checked the underlying data and the values definitely have decimal values as the examples I listed above are from. When I run similar queries via the SQL COMMANDs web page the data is correctly formatted. It just appears to be with in the stored procedure.
    BUGGER I've just noticed that it is happing on "Report Regions" where I have also used TO_CHAR(decimal_Value, '99990.00') etc.
    Does anyone know WTF I've done or not done. I'm pulling my bloody hair out as "IT SHOULD JUST WORK!!" :(
    Regards
    Mark

    G'day Chrissy,
    Thanks for you response, I've just logged it the demo application on my local instance of apex v 3.0.1 on Oracle XE and and as you would have it, I cannot for the life of me get the Number Formatting issue to occur at home.
    So when I get back into work, I'll give your suggestion a go.
    That said, I've modified the DEMO application specifically the TOP 10 Product report using every combination of the TO_CHAR (your way, the ways that I believe I'm using) and it works fine. I've created a new table with decimal values and a new report and it works fine. I even tries putting records with null values in the decimal field, but it worked fine.
    I've just switched themes (even though themes have no influence of a dynamically create html page via procedure) annnnnd it works fine.
    AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!!!!
    Just maybe, just maybe it was Friday-itise and when I get in Monday it will just work, unless I get stung by Monday-itise :)
    I'll keep plodding along,
    Mark

  • 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 issue in XML Publisher from OAF (',.' is replaced by 'u n')

    Hi All,
    I am facing a problem in XML Publisher report. In report I need to display some number fields with 'USD' format. In RTF, data type 'Number' and format '###,##0.00' is selected. If I run concurrent program from oracle core forms using System Administrator > Concurrent > Request, I am able to get correct number format.
    Ex : 123456.00 After Number format : 123,456.00
    Also its working fine from XML Publisher Administrator responsibility (using Preview).
    But problem is when I submit the concurrent request through OAF, I am not getting correct data. ',' is replace by 'u' and '.' is replace by 'n'.
    Ex: 123456.00 In Report 123u456n00
    Checked profile value : ICX: Numeric Character and its set to 1,000.00 at site level.
    Do I need to set character set anywhere in OAF before calling concurrent program?
    I tried to use "alter session set nls_numeric_character = ',.';" by calling stored procedure from OAF. But still its not working.
    Please give me solution for this.
    Regards,
    Sadanand

    Hell - I am running into the same issue? Did you guys find a resolution for this? Please let me know, would really appreciate your help.
    Thanks,
    Dhiraj
    [email protected]

  • How to change number format to international setting

    Hello everyone,
    I need some help on how to change the number format on my phone from the standard US format to an international format with no spacing between the numbers. Currently, my numbers appear as: 0706 343 3456. However, I will like for it to appear as 07063433456. When i recieve calls, the number format is not recognised and I cannot tell who is calling. Same goes for SMS messages. In this part of the world, the number format is not spaced, which is quite frustriating.
    Can anyone please advice me on how to go about this.
    Thanks

    Really? I tried that but it did not work. I restarted the iphone several times but the number format did not change.

  • 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

  • How do I change the number formatting within a Cell Table in Microsoft Word?

    Hi, I was wondering if someone could help me out on an issue I've been having... I work for an accounting firm and we do a lot of financial statements. 
    I was wondering if we would be able to treat a cell table in Microsoft Word 2007 like I would a cell table in Microsoft Excel. Meaning, I would like to change the formatting of the numbers in the table to the "Accounting" (number) format so it
    aligns by the decimal point and use the $ signs and () for negative numbers.  We do use the link tables feature, however, most of our balancing pages just can't be done in Excel because of the way the text is written. It would be much harder to format
    the text if it were to be typed in Excel. We have also tried  creating an Excel sheet within Microsoft Word but it is the same as linking the tables... Again, a text formatting issue.  The only option is to use tables within Word but how do we change
    the number formatting to a "accounting" (number) format where the numbers would align with the decimal point and use () for the negative numbers. Is there ANY option for us to do this other than manually entering this information in using tabs?  
    If there are no options other than entering it in manually, please consider this as an option for your next software update. I believe that a LOT of people out there will be interested in this feature... My manager and I just attended a webinar on Microsoft
    Advanced Word Tips Tricks and Techniques and 75% of the attending people had this question but no answer.
    Thank you very much for your help!!!!!

    Word does not really have number formatting for table cells. You can align cell contents on the decimal point, though, by setting a so-called decimal tab stop.
    Option 1:
    - Select the cells for which you want to do this.
    - Display the ruler.
    - Click the Tab box on the left hand side of the ruler until the box contains an inverted T with a dot.
    - Click in the ruler where you want the decimal tab.
    Option 2:
    - Select the cells for which you want to do this.
    - Click the arrow in the lower right corner of the Paragraph group on the Home tab of the ribbon.
    - Click the Tabs... button in the lower left corner of the dialog.
    - Specify a tab position in the box, e.g. 1.5".
    - Select the 'Decimal' radio button under 'Alignment'.
    - Click Set.
    - Click OK.
    You will have to type the numbers as they should appear, including the $ for currency and the ( ) for negative numbers.
    Regards, Hans Vogelaar

  • Excel import number formatting

    Hello,
    I'm trying to use sqldev 1.5.4 to import data from an excel spreadsheet, and running into a number formatting issue that I hope someone can help me with. One of the columns in the spreadsheet contains zip codes that I'm trying to import to a varchar2 column in my table, but when sqldev imports them it's trying to format them with a comma in the thousands place. So the zip code "94606" becomes "94,606" in the database. Is there some way to disable this? There doesn't seem to be any option for it in the import wizard.
    Thanks!
    Sean

    Thanks for the suggestion. The format of the zip code column is set to Special (Zip Code) and I have another column, Phone Number, which is doing the same thing despite being formatted as Special (Phone Number), so I don't think it's using that.

  • Number format issue - comma (1,5) instead of period (1.5) before decimals?

    I am using an input field of data type Number. In Norway we use a comma before decimals. I can't get this to work in VC. Have tried to set Number format with 'Local format' checked but this is not helping. (even if my portal is showing Norwegian texts as supposed by the language setting)
    If I uncheck this and go to Custom formatting I get to set my own format. NSTR(@OPERATORER_N, ".2") gives me two decimals but with a period as the decimal point. NSTR(@OPERATORER_N, ",2") does not work.
    I do not want thousands separator.
    Tips?
    Henning Strand

    Hi,
    Check the se Threads i think you definitly get the idea or solution.
    But every body ask about to get dot separatot instaed of Comma Separator since this can be get easyly with Language Portal Settings
    Thousands separator
    http://help.sap.com/saphelp_nw70/helpdata/en/38/2d9b732beb4c68bba2962602a7d6bd/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/26/64fb472a144a0dbaf88f5ec75d9270/content.htm
    http://oregonstate.edu/dept/computing/warehouse/PDF/8-reports.pdf
    Re: Supressing Currency & Thousands Separator
    Re: Special Number format Mask Visual Compser
    All the best
    Govindu

  • CSV to Excel 2013 - Issue with number format

    Hi,
    I use Excel 2013 to manipulate CSV files. I experienced issue with number format cells. In my CSV file there is one column that presents latitude values in format: 52.05456464. When I open my CSV file in Excel 2013 all values in that column get separator
    ".", in this case my number is present like this: 52.054.454.464. I tried to change my cell format, and when opened the category was Number, I change it to the General but in that case I lost all "." and got 52054454464.
    I also tried to open same file on other machine with Excel 2010 and file is opened correctly without issues and in cell format the category is general by default.
    I hope that there is some kind of resolution for this.

    Hi
    According to your description, we may follow these steps:
    highlight the column B > Home Tab > Number section > Select Number and choose "More Number Format" > Make sure the Negative number is chosen correctly. If you are using Custom format, we will have to change it.
    Hope it helps
    Best regards

  • Phone number format edit

    Hello everyone, i have a problem with my iPhone 4S. I'm from Romania so it's not a verizon problem only... When a person in my contact list is calling me it only shows the numer of the caller not the ID, but after i hang-up and go to call history it shows the ID. I tried to put +4 in front of the number but now when someone is calling it shows the ID but in call history it shows the phone number. The phone is Jailbroken so if there is any solution what requires a jailbroken phone i am happy to try it out. The format region is on Romania and the International Assist is OFF. I tried as many things i could find on the internet about this but still can't figure it out. Can you guys help me? My firmware is 5.1.1 and i DON'T want to upgrade to 6 because i use a gevey sim card to unlock it, so anything else that can help ?

    Thanks, indeed. I had my Phone language set to "English (United States)" . I never thought that this would change the number format. I changed it to English and now it's ok.
    + it stopped with that annoying correction while i'm writing text.
    So double thanks
    Attachments:
    wp_ss_20130524_0002.jpg ‏71 KB

  • 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

  • APEX cannot accept any other number format mask except 999G999G999G999G990?

    Hi, guys:
    Can anyone help me on this problem? I have a report with a column of number type, but I want to use accounting format mask such as <1234.56>, however. whenever I choose any other format model for this number column, I got the error message as "ORA-01481: invalid number format model", I can only choose Numeric format mask: 999G999G999G999G990
    Anyone could give me a hint on this? I am using APEX 4.1 and Oracle 11G R2. Here is my query for report
    select uh.descr, inv6.userkey, inv6.invno, inv6.amt-pa_temp.Subtotal_Payment over_short_amount
    from
    (select pa6.invoicekey, sum(pa6.amt) Subtotal_Payment
    from payments pa6
    where trunc(pa6.pmtdate)<=to_date(:P55_DP_VPF_PROD_DATE,'DD-MON-YY')
    and pa6.type not in (5)
    and pa6.invoicekey in (select pa5.invoicekey
    from payments pa5
    where trunc(pa5.pmtdate)=to_date(:P55_DP_VPF_PROD_DATE,'DD-MON-YY')
    and pa5.type=2
    group by pa6.invoicekey) pa_temp, invoices inv6, userhdr uh
    where inv6.userkey=uh.userkey
    and pa_temp.invoicekey=inv6.invoicekey
    and pa_temp.Subtotal_Payment<>inv6.amt
    and abs(inv6.amt-pa_temp.Subtotal_Payment)>1000
    order by 1Thanks a lot!
    Sam

    I found the cause. Thanks!

Maybe you are looking for

  • Adobe Installer says up to date when the file is not on my computer anymore.

    My adobe installer says that my Illustrator is up to date when I actually deleted illustrator off my computer. I need to download it again but it won't let me. Please help.

  • Win7 32bit Flash videos won't play

    I have 2 PCs, both running Win7 Home Premium current with all patches as well as current versions of Chrome, IE9, and Firefox.   My 64bit desktop runs Flash videos just fine with all 3 browsers.  All was OK until the last day or two.  Now my 32bit la

  • ITunes silent playback from songs on Time Capsule

    I (and a number of others) are having trouble with unreliable iTunes playback over AirTunes when songs are stored on a Time Capsule. More here: http://discussions.apple.com/thread.jspa?threadID=1768602&tstart=0 The cause appears to be Time Capsule fi

  • When I place a colored image, it goes black & white. Why?

    Pleas advise what settings to change, so the image stays in color when placed.

  • Wireless CATV Possible with EyeTV?

    I have an EyeTV 200. Works fine when connected directly to the cable tv outlet. I am thinking about moving my iMac (isight) into a room without a cable tv outlet and no convenient way to string cable for a new one. Does anyone know of a way to wirele