Rounding when using format-currency

Hi all,
We're using format-currency in several places in out reports. I.e.
<?format-currency:ssLfBonusAmountContributing;'EUR';'true'?>
When using this formatting we always get the value with 2 decimals.
Is it possible to round and display without decimals?
Regards,
Hakan

Hi all,
Haven't anyone come across this issue, with currency-format and display value without decimals?
I know that I can use number-format, but this is not then first option.
Regards,
Hakan

Similar Messages

  • Is it possible to use format-currency() inside set_variable()?

    Hi gurus,
    I have a few numbers to sum up for the report, and I want to round the numbers according to the currency before they are summed up. What is the best way to achieve this?
    The way I can think of is:
    To around the number I can use <?format-currency:VALUE; CURRENCY; 'false'?> in the template. Then initialize a variable SUBVALUE=0 and then add each rounded numer to this variable:
    <?xdoxslt:set_variable($_XDOCTX, 'SUBVALUE’, xdoxslt:get_variable($_XDOCTX, 'SUBVALUE’) + (format-currency:VALUE; CURRENCY; 'false'))?>
    However, I'm getting error indicating that I can't use format-currency:VALUE inside set_variable() in this way...Am I using the function wrongly? Or is there another function that can achieve this?
    Appreciate your help :)
    Sophy

    Hi Tim,
    As you said, the reason that why I have to add after rounding is to avoid the 0.01 issue. Our PM requires the numbers shown in report to be mathematically correct, so if we add before rounding then we'll have sub-toatal and totals different by 0.01 or so.
    And since I need to round the values according to the currency, I can't round it in the query...I have to use format-currency in the template to do the rounding.
    Thanks :)
    Sophy

  • Php mysql math error when using format(somenumber,2)

    osx 10.5.2, php 5.2.5, mysql 5.0.51 (standard leopard desktop os install)
    Select format(myField,2) as someNumber from myTable ...
    returns data i would expect, formatted as you would expect.
    while looping through the data returned i am calculating a running total.
    for numeric values less than 1,000 results are expected. for numbers gt 1000, php seems to want to truncate the value at the comma. 1,111.11 evaluates to 1; 25,000 evaluates to 25.
    If you remove the format() from the sql statement everything works the way you would expect.
    wrapping the value returned in a floatval() had no effect.
    I am posting this on the apple site rather than php/mysql forums on the off chance that this is a mac centric issue. googling the obvious combinations wasn't productive.

    Sounds like a locale issue.
    Many international formats use comma as the decimal separator, not the thousands.
    There are many levels where this could be set. It could be an OS setting (you don't say where you or, or the locale information of your machine (System Preferences -> International -> Format). It could be in PHP (see: http://www.php.net/setlocale ), or it could be in the database (data could be written in a comma-based table).
    It will take a little research to work out where your specific problem lies.

  • Repeat "Detail a" section when using "Format with Multiple Columns" layout

    I am using Crystal Reports for .NET (VS 2008) and I would like to get the "Detail a" section to repeat at top of a second column containing additional data in "Detail b" section. Please see below for example, specifically "Detail a (2)". Any tips or help much appreciated.
    Detail a (1)_____Detail a (2)
    Detail b (1-1)___Detail b (2-3)
    Detail b (1-2)___Detail b (2-4)
    --Detail b (1-3)___Detail a (3)
    Detail a (2)______--Detail b (3-1)
    --Detail b (2-1)
    --Detail b (2-2)
    Thx, Scott

    the format with multiple columns i dont believe will show you the value 2x, but allows you to display the values across instead of down.
    i think you may want to use a sub report

  • Error when using format mask to create download link in report

    I'm following these directions to create a download link in a report region.
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/advnc_blob.htm#HTMDB25905
    ######### Table Structure...
    desc document_library
    Name Null Type
    DOC_ID NOT NULL VARCHAR2(40)
    DATE_ADDED NOT NULL DATE
    FILE_CONTENT BLOB()
    FILE_NAME VARCHAR2(100)
    MIME_TYPE VARCHAR2(100)
    DOC_NUMBER NUMBER
    ###### Report Region...
    select a.*, dbms_lob.getlength(file_content) length
    from document_library a
    ###### Download Link Column...
    Date Format: DOWNLOAD:DOCUMENT_LIBRARY:FILE_CONTENT:DOC_NUMBER::MIME_TYPE:FILE_NAME:::attachment:Download
    ####### Results...
    report error:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    The report region displays no rows (even though there is one row in the table), no links, and even more strange, it show the value of APP_USER where it would normally display the results.

    Josh,
    Your end result on page 58 and the instructions in that document link don't seem to correlate. Regardless, I:
    1) Copied page 58 to page 158 in your application.
    2) Removed the BLOB format mask from your report link.
    3) Changed your query to:
    select "ROWID",
    "DOC_ID",
    "DATE_ADDED",
    "USER_ID",
    dbms_lob.getlength("FILE_CONTENT") "FILE_CONTENT",
    "FILE_NAME",
    "MIME_TYPE",
    "DOC_NUMBER"
    from "#OWNER#"."DOCUMENT_LIBRARY"
    4) Specified the BLOB format mask for the FILE_CONTENT column.
    Seems to work just fine now (on page 158, that is).
    Joel

  • Using Parent Currency in HS.Exp

    Hi All,
    I need to use the <Parent Currency> value member as a SOURCE in my calculation.
    I have defined the variable "strVSource = HS.Value.IsTransCur()" and then use that variable in the right-hand side of my HS.Exp calculation
    The resulting Value member is "False" and the consolidation aborts. When using <Parent Currency> as the destination, the same setup works fine.
    Hence I can write to <Parent Currency>, but not read from <Parent Currency>...is that correct?
    Thanks

    When you want <Parent Currency> as your source value member, in which member are you as the target? That is, if you have a value condition that says
    If HS.Value.IsTransCur() = True Then
    Hs.Exp "A#xxx = A#ooo"
    End If
    This implicitly means the source is also the same value member you are in. I will add that this doesn't have to mean you are in <Parent Currency> but instead means that translation has taken place: that the source and target currencies are different. In other words, if you have a child in EUR and a parent in USD, the function HS.Value.IsTransCur() = True will be True not only for the parent currency "USD" but if the user translates the EUR base entity into GBP, the function will ALSO return True. So, if you are in [Proportion] for example, and want to read from <Parent Currency> you should use the ACTUAL currency of the source value member such as "GBP Total", and this should get what you want.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I show only text edits and not text formatting when using print comments summary?

    Acrobat 9.3.0 for Mac.
    Here is the scenario: I used the Compare command to see the changes between 2 PDFs. The resulting file some edits are inserts and some are deletions. I want to print a comments summary only showing the text edits. In the Compare Option pane, I select Text and deselect Images, Annotations, Formatting, Headers/Footers, and Backgrounds. Now on the screen I see inserts are highlighted in blue and deletions are marked with sort of a caret and vertical bar symbol. So all looks good at this point. However, when I show the Comments List, I see addtional comments that indicate "Replace - The following text attributes were changed: fill color." Those comments do not appear in the page view unless I check the Formatting check box to show them. With Formatting unchecked, I print a comments summary and all of the "Replace - Fill Color" comments" appear on the resulting comments summary.
    I only want to show text edits, not text formatting changes. So questions are:
    1. Why, when the Formatting checkbox is unchecked, do the text formatting comments still appear in the comments list when they do not appear on the page display.
    2. How can I print only the text content edits and not show the text formatting changes when using Print Comments Summary.

    Hi,
    You can set ExecuteWithParams as default activity in the task flow then method activity to return total no of rows passing to Router activity if your method has value 0 then call Create insert operation else do directly to page.
    Following idea could be your task flow
    Execute With param (default) > SetCurrentRowWithKey > GetTotalNoOfRows (VOImpl Method)
    |
    v
    Router
    1. If pageFlowScope outcome is 0 then call CreateInsert > MyPage
    2. if pageFlowScope outcome > 0 then MyPage
    hope it helps,
    Zeeshan

  • I have noticed that when using Tigers Dosk utility to ERASE a flash drive I have a choice of FAT but not FAT32.  It seems that flash drives formatted as FAT do not work properly when trying to copy files from a Windows machine.  Why?

    I have noticed that when using Tigers disk utility to format an external USB flash drive I only have the choice of FAT ( when formatting for use on a Windows machine ) and not FAT32.   I have found that USB FLASH drives formatted as FAT do not always work on Windows machines.  Why?  How can I use Tiger to format for FAT32?

    I think it depends on the size of the Flash Drive as to whether it uses FAT16 or FAT32.
    Can you format it FAT32 on the PC?
    Other options would be NTFS or Mac OS Extended...
    NTFS-3G Stable Read/Write Driver...
    http://www.ntfs-3g.org/
    MacFUSE: Full Read-Write NTFS for Mac OS X, Among Others...
    http://www.osnews.com/story/16930
    MacDrive for the PCs... allows them to Read/Write HFS+...
    http://www.mediafour.com/products/macdrive/

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    &lt;script type="text/javascript"&gt;
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '&lt;b&gt;TOTAL&lt;/b&gt;')
    rs[rs.length - 1].style.display = "none";
    &lt;/script&gt;Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

  • So I have been creating a logo for my company and it came out great. The problem is, when I format it for PNG or when I want to use it on freshbooks or my webpage, the image becomes blurred and the text is not as clear. How do I fix this?

    So I have been creating a logo for my company and it came out great. The problem is, when I format it for PNG or when I want to use it on fresh books or my webpage, the image becomes blurred and the text is not as clear. How do I fix this? Is it because the text get shrunk?

    This is how it looks on adobe illustrator

  • I am trying to cut and paste from a program, IEP DIRECT, and normally on my PC I have no problems; however, when using my MAC the formatting gets all mixed up

    i am trying to cut and paste from a program, IEP DIRECT, and normally on my PC I have no problems; however, when using my MAC the formatting gets all mixed up

    If you refer to this
    https://www.iepdirect.com/iepdotnet/hub/index.html
    then they have an issue with mac version.
    At a first glance, their website is optimized for Windows only, it displays badly in Safari, perhaps it would be better in Firefox or other browser.

  • Will pages automatically reformat to correct size when using Folio Builder or do I have to make pages iPad format, for example, in InDesign document set up from the start?

    Will pages automatically reformat to correct size when using Folio Builder or do I have to make pages iPad format, for example, in InDesign document set up from the start?

    Moved to DPS forum.
    You need to set up the pages appropriately for the target device. For iPad that's 1024x768.

  • My itunes library when using my phone is in Japanese, and the currency is set to yen. I have changed the settings via the flag at the bottom of itunes on windows but its only changed on my windows itunes.

    The currency on my itunes store when using my iPhone is in Japanese yen, the menu is in Japanese too. I have changed the country using the flag at the bottom of itunes for windows, I have synced my iphone and restarted it, but it still has not changed. I also cannot set up a payment method for itunes as it keeps asking for japanese bank details? Help!

    The currency on my itunes store when using my iPhone is in Japanese yen, the menu is in Japanese too. I have changed the country using the flag at the bottom of itunes for windows, I have synced my iphone and restarted it, but it still has not changed. I also cannot set up a payment method for itunes as it keeps asking for japanese bank details? Help!

  • Problem when create auto numbering in BP master using Formatted Search

    Hi all,
    I have a problem in creating auto numbering in BP for Customer type using Formatted search
    My query is like this
    declare @tempNo as char(20)
    set @tempNo=(select  Isnull(max(REPLACE(OCRD.CardCode , LEFT(OCRD.CardCode,10),'')),0)  + 1
    from OCRD where (CardType ='C') and LEFT(OCRD.CardCode,3) = 'CU.' )
    set @tempNo='CU.'left(convert(varchar,GETDATE(),112),6)'.'+@tempNo
    select cast(@tempNo as char(20))
    It should be creating the new number for example
    CU.201101.1
    CU.201102.2
    CU.201103.3
    CU.201103.4
    The format will be like this CU.YYYYMM.autonumbering
    So if the current year is still the same it will always increase the number and it will reset the number become 1 if the current year is change.
    But when i execute the number , the number doesn't increase, still generate the last number CU.201103.4
    I have use this query in generate item number, it runs well but different format.
    Is there some thing wrong with my query?
    Thanks in advance
    Regards
    Jia shun

    Hi Jia shun,
    You have posted an identical threads. There is no such need. Please close this one and response to the one with answer already.
    Thanks,
    Gordon

  • Kernel panic when using FAT formatted external storage

    I have a PowerBook G4 17" with 1GB RAM and since updating to 10.4.8 from 10.4.7 I have received on three occasions a kernel panic, i.e. a message that says "You need to restart your computer. Hold down the Power button for several seconds or press the Restart button."
    Looking at the conditions under which this event occured, on all three occasions, this looks to be disk I/O related using external drives however the cause could be something else like Spotlight indexing for example - I am hoping this is not hardware.
    On the occasions where the problem has occured the attached storage devices have been:
    1. A FAT formatted, bus powered Firewire attached 2.5" IDE drive
    2. A FAT formatted PC Card drive
    I had this happen to me last night with the PC card drive when I found I couldn’t delete any data from the drive but could write and overwrite data. My internal IDE drive seems to be fine however I decided to eject the drive and reinsert it but on reinsertion the system could not see or mount it. I then tried a FAT formatted CF card with PC Card reader/adapter – same thing, it wouldn’t mount. I then decided it was time to reboot and that is when the message popped up as the transparent grey bitmap (http://docs.info.apple.com/article.html?artnum=106227). After rebooting I got a kernel error stack trace telling me something bad happened hence the reboot. This thread seems to be very similar to my problem except with a new Intel version of the 17":
    http://forums.macnn.com/90/mac-os-x/312947/what-does-mean-when/
    Any ideas? In all cases this has occured when using an external FAT formatted drive and actively writing data to it - it doesn't seem to matter how it is attached or specifically which drive it is. I have not had this problem previously when using external storage media and I am not using any backup software when this occurs - I am simply saving files from various applications be it PhotoShop or a Safari download. One last note, I am using Intego VirusBarrier X4.
    Right now my plan will be to run the disk utility, disable anti-virus and possibly disable indexing on external drives and try to reproduce the issue - the only problem with this is with the exception of the 10.4.8 update, what changed?
    PowerBook G4 17" 1.33Ghz   Mac OS X (10.4.8)   1GB RAM

    Funnily enough I can backup to my USB attached bus powered 2.5" drive formatted as Mac OS Extended, this is why I am wondering if there is a relationship between externally attached FAT formatted storage and kernel panics.
    My system disk checks out with no errors BTW - I also rarely travel with my PowerBook so it is relatively well looked after and should have a lower exposure to issues relating to faulty hardware.

Maybe you are looking for