How to suppress currency symbol (eg $)

Hi,
I'm using NumberFormat to format some currencies, but have now been asked to remove the currency symbol, in my case a '$'.
I'm currently doing it like this, but can't find a way to say 'no symbol'. Should I be using DecimalFormat instead?
NumberFormat currencyFormat = NumberFormat.getCurrencyInstance();
currencyFormat.format(lineAmount);I'll keep trolling through the docs, but if anyone has the quick answer....
Thanks,
Nick.

NumberFormat currencyFormat = NumberFormat.getCurrencyInstance();How about you try NumberFormat.getIntegerInstance(); or getInstance();
You can also setGrouping (1,234 or 1234) true or false with setGroupingUsed(boolean).
Cheers,
Radish21
PS You have found the API, right? http://java.sun.com/j2se/1.4.2/docs/api/index.html
http://java.sun.com/j2se/1.4.2/docs/api/java/text/NumberFormat.html

Similar Messages

  • How to print currency symbol in SAPScript

    Hi,
    How to print different currency symbol in SAP?
    The requirement is that the SAPScript should print the currency symbol along with the currency code.
    i.e. USD ($)
    The currency can be any foreign currency.
    Is there any table where i can get currency symbol or is there any way i can print this. I am working in 4.6C.
    Please help.
    Thanks,
    Pratik

    Hii
    When the user has to insert a particular symbol, from menu:
    Insert->Character->Displayble Characters:
    Here in the input field insert <156> and then press enter

  • How to set currency symbol correctly in crystal report

    Hi all,
    I am using the Crystal Report 2008, I have one issue regarding the currency symbol in the crystal report.
    it seems the CrystalReport use the System Default currency symbol. e.g.
    ProductA Cost: $1000
    It displays,
    ProductA Cost: £1000
    in euro locale and $ in english locale
    It doesn't make sense in business. The question is how do we set the currency symbol "$" to the report? I google some websites, the SetLocaleInfo may be one option, I would like to know the detail and if there are more solutions.
    Thanks for your help

    Before in our legacy application, we used Crystal Report 9 & VB
    'Crystal Report Designer Components (RDC).
    Set CrxApp As New CRAXDRT.Application
    I can set the crxapp to nothing and recreate this design component.
    Set CrxApp = nothing
    After SetLocaleInfo, if we set the CrxApp to nothing, it will create the RDC and the currency symbol will be updated.
    Now we are using Crystal Report 2008 and C#, the RDC is not supported in 2008
    What can I do?
    Any input is greatly appreciated.
    Edited by: Dennis Zheng on Feb 17, 2009 3:57 PM

  • How add new currency symbol in pages 5.1?

    i couldnt find a way to custom add new currency symbol to pages or numbers. If anyone knows how to do, let me know. Thanks.

    Are you talking about in Tables?
    The list seems to be the list.
    In Pages '09 there is more flexibility you can have a Custom format and add your own prefix.
    Peter

  • How to remove currency symbol in PLD

    Hi All,
    I would not like the currency symbol to be printed in PLD. Can anyone plz help me.
    Regards,
    NN

    Hi Rich,
    Try this,
    for example: Document Total - Field ID -> F_123
    ->> Open your PLD.
    ->> Create 1 Formula Field in Page Footer and put the below formula in Formula Field.
    Amount(F_123)
    OR
    Substring(F_123,3)
    IF you add currency symbol in Doc.Total field.
    Formula Field=Amount(F_123)-> Uncheck Tick Mark in Visible at General Tab on Properties Window.
    and
    Doc.Total = F_123 -> put the Tick Mark in Visible at General Tab on Properties Window.
    Regards,
    Madhan.

  • How  can i print currency symbol in smart form?

    how  can i print currency symbol in smart form?
    i want to print the currency symbol with grant total based on the vendor currency.
    pls hepl............

    Hi,
    think You can't print the symbols for currency like $ and Pound etc
    see this doc if needed
    A variable in SAPscript is called a symbol. There are the following types.
    • System symbol (e.g. the number of the current page)
    • Standard symbol (usable in any document)
    • Program symbol (value from the print program)
    • Text symbol (“local variable”)
    The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
    goto any PAGEWINDOW's Text elements in Script (SE71)
    from the Menu-> INSERT-> Symbols
    you find all symbols here
    System symbols
    System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
    1. General system symbols
    See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
    2. SAPscript system symbols
    See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
    3. ABAP system symbols
    For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
    Sample code:
    User: &SYST-UNAME&
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
    Standard symbols
    Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
    Tools
    Form Printout
    Administration
    Settings
    Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
    The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
    We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
    Standard symbols complicate searching a SAPscript form, since text like ‘Charity registration 211581’ may be hiding in a standard symbol.
    Text symbols
    A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
    /: DEFINE &COMP_NAME& = ‘University of Warwick’
    /: DEFINE &WS_RATE& = &TAX_SUMM_C&
    Reward points for useful Answers
    Regards
    Shiva Kumar

  • How to implement new Indian currency symbol in oracle reports ..?

    Dear All,
    One of our client needs to display new indian currency symbol instead of the "Rs" in the report ourput.
    Our 10g application and db server is deployed in Sun solaris environment
    Please let me know how can i implement the same.
    Thanks in advance
    Thangaraj

    You can use an image, like it's done on Wikipedia:
    http://en.wikipedia.org/wiki/Indian_rupee
    There is no Unicode for this symbol (yet), so this is the only way.

  • How to Print Euro Currency Symbol

    Hi All,
    Please suggest how to Print Euro Currency symbol in SAP Script.
    Thanks
    Saurabh

    Hi,
    I was also facing the same problem while printing the Euro symbol.
    Now got the easy solution.
    Goto smartforms-> text editor, -> then include charactrs-> displayable charactrs-> and now select Euro symbol...
    Regards,
    Mrunal

  • How can i Change the currency symbols for swiss francs?

    Hi,
    i use Numbers '09.
    How can i change the  currency symbol for swiss franks from SFr to CHF. Because the international ISO abbreviation is CHF and not SFr.
    Thanks,
    Bye

    Switch to Lion.
    I checked several currencies and now they are OK.
    Yvan KOENIG (VALLAURIS, France) samedi 8 octobre 2011 23:24:26
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How can I -change the currency symbol from Pounds to Euros in a spreadsheet?

    How can I change the currency symbol from Pounds to Euros in a spreadsheet?

    Assuming davyfromGib is asking about AppleWorks rather than Pages . . .
    If running AW under OS X, System Preferences settings allow you to use the euro rather than pound sign in AW's currency-formatted cells:
    System Preferences > Language & Text > Formats > Currency (set to Euro)
    AW respects this setting in choosing how to display currency format.
    But do note that if you later change the System Preferences back to pounds, the currency-formatted cells in the AW spreadsheet will also change to pounds.

  • How Can I get Currency Symbol?

    Hi again ,
    My new probles is the following :
    I would like to get the  Currency Symbol, I mean , Symbols like that $ , s/. EUR , etc.
    That information is stored in some special table ?
    Please Help me , I'll apreciate your help!!!!!

    Check out the below related thread
    Re: country specific currency symbol has to be dispalyed plz tell me the if any
    Regards,
    Santosh

  • How to change currency sign in report

    How can I change the currency sign in report like from dollar to pound sign. Any help and advice will be highly appreciated.

    Sherry,
    I'm stumbling my way thru the same question. we need to print the currency symbol based on the country defined in the data. here's the not-so-short answer:
    we're looking into storing the currency symbol as a unicode value (NVARCHAR2 field) in the database by country and linking it to the data selected in the report. I have a select statement in the report sql that retrieves the correct unicode value per data row. the question then seems to become: do i want to display the field as a number with a format mask, or convert the whole thing to a string/char value?
    Keeping everything as a number, in the report format field Format Trigger, i create a mask for each field and call a function to do the following:
    v_format := q'{(}' || q'{"}' || p_currency || q'{"}' || v_format || q'{)}';
    this gives you a mask with the parenthesis for negative numbers, the currency as literal string, and the v_format (NN,NNN,NNN,NNN,NN0.00) for currency amounts. we vary the # of decimal places and pass that value into the function (just to make things complicated.)
    the 'uber complex' version of the function converts the number field to a string/char value. this allows you to change the decimal and separator values for an individual data row. we have not decided to implement this, but it works. you have to enter a 'bogus' character field in the report format and use srw.set_field to change the value at runtime. this keeps the value as a number in the sql for math, but a char to display. complicated. the function does this...
              v_format := '999G999G999G990';
              v_decimalplaces := MOD((p_decimalplaces * 10),10);
              IF v_decimalplaces > 0 THEN
                             v_format := v_format || 'D';
                   FOR i in 1..v_decimalplaces LOOP
                   v_format := v_format || '9';
                   END LOOP;
              END IF;
              CASE WHEN SIGN(p_value) >= 0
                   THEN
                        v_format := p_currency || TO_CHAR(p_value, v_format, 'NLS_NUMERIC_CHARACTERS = '',.'' ');
                        ELSE
                        v_format := '(' || p_currency || TO_CHAR(ABS(p_value), v_format, 'NLS_NUMERIC_CHARACTERS = '',.'' ') || ')';
                   END CASE;
    we would pass the values of NLS_NUMERIC_CHARACTERS to the function.
    the last 'hitch' is that not every UNICODE currency symbol displays properly. the euro (hex 20AC) is fine, but the korean won (hex 20A9) is not. the database character set is AL32UTF8, and the sql works fine in sql_developer. however, reports does not reliably display the symbol. i have a TAR into oracle at the moment, hoping for clarification. there seem to be many layers in oracle reports to get this to work (database character set, report server character set, font in developer, font on report server, etc.)
    let us know how it goes...an often asked, but rarely answered question (IMO). hopefully this gives you some ideas.
    thanks,
    john

  • Problem with Currency Symbol in IR export to CVS

    I have a number of queries that have been successfully generating csv files for years and have been adapted to provide the basis for the same information to be available as an interactive report with the option to download as csv. The old scripts set the NLS settings at the outset. The Apex app sets the NLS environment in the vpd function. The apex report query is a "select * from some_view" style one that ultimately queries a remote view with several columns like this:
    select TRIM (LEADING ' ' FROM TO_CHAR(ROUND(100,2),'L9999G999G990D00')) x from dual;
    just as the were in the prior manual SQL.
    The "new" apex export to csv files contain an extra character preceding the currency symbol that is upsetting Excel on import.
    old-style hexdumps look like this:
    2c 22 a3 31 30 30 2e 30 30 22 2c
    ,"£100.00",
    new ones like this:
    2c 22 c2 a3 31 30 30 2e 30 30 22 2c
    ,"£100.00",
    Where on earth is Apex getting it into its head to add this (the on-screen report is fine!) and how can I stop it?
    Thanks in anticipation.

    hi,
    this is a normal problem u can avoid this by moveing these currencu value to a character field then print the char field us ing condece... &var(C)&..
    eve if not solve the problem use the TEMPLATE node..
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • Any SAP standard approach to display the currency symbols without hard code?

    Hi,
    I want to display $ symbol on the report ouput, for the how can we display currency symbols without hard code?
    Thanks,
    Aarti

    Not much chance... If such a standard table exists, then during Euro creation, an OSS note would have been released to add the € character, and I found none, fell free to perform some search on OSS with keywords I didn't try.
    So better build your own customer table with foreign relaction to TCURC.
    NB: Look for symbol list ($, £, €, ¥, etc.) in sites like Currency symbol - Wikipedia, the free encyclopedia. I hope your system is Unicode.
    Regards,
    Raymond

  • Currency Symbol for each amount

    Hello People,
    I have to include currency symbol infront of each amount in my web dynpro application display.
    Example, there is an amount in USD, currency symbol for USD must be published there and
    if there is an amount in EUR, currency symbol for EUR must be published there and so on...
    Can someone help to know me how can I do that?
    Thanks,
    Megha

    Hi Megha,
    If you are going to store the symbols as graphic/icons  I would store them in the mimes folder and then reference the the mime name in your custom table. So two fields in your table, currency and mime name.
    I think you might find that if using a Unicode system that you can just type the symbol into the table - e.g. $ £ ₧ u20AC rather than having to use any graphics. I suppose it depends on how many symbols you need.
    Again - I'm not aware of anything SAP standard that does this.
    Good luck,
    Chris

Maybe you are looking for

  • Is there a way to format text in Small Caps?

    I have just installed Photoshop Elements 11 for Windows and am wondering if there is a setting to format text in small caps?

  • Web pages sticking or not loading

    Hi, the problem Im encountering is that when I open a new webpage from a site Im already on it loads incredibly slowly if at all. For example (and this is the most often occurring) when Im trying to sell an item on Ebay I can enter the site, go to th

  • How to sort a selection of cells?

    If anyone can answer this question I will be very grateful - here's the scoop: I need to sort the data in a selection of cells that run down several rows - but NOT all of the cells in the entire row. The last column contains formulas which must NOT b

  • Window size in GarageBand

    I can't access the bottom right hand corner to make the GarageBand window smaller; therefore, I can't access the Record/Playback buttons. Is there another way to make the window SMALLER. I've found lots of help to make it bigger. Thanks!

  • Timesheet Application And PDF Printing

    Hi, I demo'd the time sheet application from the apex server and the management team here really liked it so I moved to our machine here and when i try the pdf printing i get the following error Not Found The requested URL /dev/apex/f was not found o