CONVERTING DATA TO 2 DECIMAL PLACES

All,
I needed to convert a BSO database to only have 2 decimal places. I did this by exporting the data and restricting the export calc to 2 decimal places.
HOWEVER - there still appears to be rollups that have more than 2 decimal places.
* Is there an easier way to convert data to 2 decimal places?
* Is there a "bug" were essbase produces more than 2 decimal places even when all 0 level members have none?
Thanks

Old posts never die until they're beaten into the ground...
On the off chance that someone, anyone still cares, Glenn was absolutely correct when he stated that Essbase stores data as floating point values.
And when that happens, only values that are divisible by two or 10 are stored without some kind of fractional value.
See the DBAG: http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/dcaintro.html
Most computers represent numbers in binary, and therefore can only approximately represent real numbers. Because binary computers cannot hold an infinite number of bits after a decimal point, numeric fractions such as one-third (0.3333...) cannot be expressed as a decimal with a terminating point. Fractions with a denominator of the power of two (for example, 0.50) or ten (0.10) are the only real numbers that can be represented exactly. See IEEE Standard 754 for Floating-Point Representation (IEEE, 1985).There is nothing you can do other than handle the round/truncate in the reporting layer.
You can always take it up with IEEE. :) As we used to say in school when taunting Electrical Engineers, "You can't spell 'geek' without --Cameron-- 'ee'." :) Or hope for an analog computer.
Regards,
Cameron Lackpour

Similar Messages

  • Convert amount with four decimal places to amount with two decimal places

    Hi,
    for specific reasons we have set the prices to four decimal places. However, in an invoice the staff needs to see all prices with two decimal places. Therefore I have created new user-defined fields which should show the rounded values However, I have not yet found the right formatted search that outputs the value with two decimal places including currency symbol.
    The statement 
    SELECT $[$38.20.NUMBER]
    outputs the value with two decimal places which is fine, but it does not contain the currency.
    The statement
    SELECT $[$38.20.0]
    outputs both value and currency, but the value still has four decimal places as the original price.
    And the statement
    SELECT CAST($[$38.20.NUMBER] AS VARCHAR(20)) + $[$38.20.CURRENCY]
    outputs a value with even six decimal places.
    Did anyone already have the same problem???
    Or does anyone have any idea???
    Thanks and regards
    Corinna

    Hi again,
    the value should be displayed in a user-defined field of the screen.
    The result of the query
    SELECT $[$38.20.NUMBER]
    has already two decimal places, so that I do not need a round here. But the currency is missing.
    When I add the round function to the query
    SELECT $[$38.20.0]
    it does unfortunatly result in an error.
    Any ideas????
    Thanks so much in advance!

  • Need help with converting date format to decimal in SSRS expression.

    Hi all,
    I have a decimal data type column with a record in the following format 20150219 --> yyyyMMdd. And I am trying to convert the return value from SSRS date/time parameter to a decimal value.
    The TMDTOP column is the decimal data type with date records in yyyyMMdd format.
    My return parameter is the following:
    =IIf(IsNothing(Parameters!SystemDate.Value),Fields!TMDTSY.Value,CDec(Format(Parameters!SystemDate.Value,"yyyyMMdd"))) 
    When I try to run the report I get the following error:
    Failed to evaluate the FilterValue of the DataSet ‘DataSet1’. (rsFilterEvaluationError)
    I appreciate if anyone can help me on solving this problem.
    Thanks in advance.

    why casting date to decimal here? Can you explain?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Convert to two decimal places

    Hi I have some code which I have written but am unable to convert it to two decimal places. Have tried various techniques by looking through some of the forums. My problem is that my data starts off as varchar(500) and initially I have to substring to get
    the actual numeric part of the data.
    At the moment i get a result such as 48487.800000. I would like 48487.80.
    Just wondering if anyone has any ideas where I could be going wrong. Here is my effort.
    select SUM(Next_Value)/100 AS ResultExpected from
    Select A.ID,  A.LogData,
          (Select Top 1 
    --CONVERT(numeric,
         -- cast(substring(B.LogData,6,36) AS numeric(10,2))
          --CONVERT(numeric(8,2),cast(substring(B.LogData,6,36) as numeric(8,2)) )
           cast(substring(B.LogData,6,36) as numeric(10,2))
          From HMRC_Load B
             Where B.Id > A.Id and A.LogData like 'NewFigure%'
             order By B.Id) as Next_Value 
    From HMRC_Load A
    where A.LogData like 'NewFigure' 
    ) AS ResultExpected
    Top Geezer

    select CAST(SUM(Next_Value)/100 AS Numeric(10,2)) AS ResultExpected from
    Select A.ID, A.LogData,
    cast((Select Top 1
    substring(B.LogData,6,36)
    From HMRC_Load B
    Where B.Id > A.Id and A.LogData like 'NewFigure%'
    order By B.Id) as numeric(10,2)) as Next_Value
    From HMRC_Load A
    where A.LogData like 'NewFigure'
    ) AS ResultExpected
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to increase no. of decimal places in a cube

    Dear Friends
    Can you tell me
    how to increase no. of decimal places in a cube
    i want 5.98765 this value in the keyfigure
    but it is allowing me only 5.987 only 3 digits after decimal
    urgent
    Thx

    Hi Laxmi,
    Inorder to store data with more than 3 decimal places,you can check the keyfigure with maximum precision checkbox available in the additional properties tab of the keyfigure.By which you can store upto 9 decimal places.
    Or
    You can change the data type from DEC to FLTP,by which you can store data upto  15 decimal places in the cube.
    Also by changing decimal places in Bex allows you to change the decimal places for the data to be displayed and if the data in the cube is holding 3 decimal places how can you display 5 decimal places in report.
    Hope it helps....
    Regards,
    Umesh.

  • SAPUI5 Decimal Places in sap.m.ColumnListItem

    Hi all,
    I have an odata binding to a table using a column list template.  One of the fields is an amount and because of currency conversion the data is (correctly) returning the amount to 4 decimal places.  I have tried a number of different approaches but am unable to get the template to render the data to 2 decimal places:
           var oModel = new sap.ui.model.odata.ODataModel("services/livesales.xsodata", false);
           oModel.setCountSupported(false);
           var worldTemplate =  new sap.m.ColumnListItem({
           cells: [
         new sap.m.ObjectIdentifier({
          title: "{LAND1}",
             visible: false
         new sap.m.ObjectIdentifier({
          title: "{LANDX}"
         new sap.m.ObjectNumber({
          number:"{EXT_NET_PRICE_CENTRAL}",
          unit : "GBP",
    I've seen a suggestion from DJ that seems to acheive desired results for a sap.m.ObjectListItem
    template : new sap.m.ObjectListItem({
    type : "Active",
    title : "{ProductName}",
    numberUnit : "EUR",
    attributes : [ new sap.m.ObjectAttribute({
    text : "{QuantityPerUnit}"
    number : {
    path : "UnitPrice",
    type : new sap.ui.model.type.Float({
    maxFractionDigits : 2
    but I don't think this syntax is valid for a sap.m.ColumnListItem
    Does anyone have any suggestions?
    Thanks,
    Jon

    Thanks for the reply DJ.
    I bind the template to a table later on (as part of a pull to refresh control:
         salesList.bindItems({
           path: "/SALES",
           parameters: {
           select:  "LAND1,LANDX,EXT_NET_PRICE_CENTRAL"
           filters: 
          [new sap.ui.model.Filter("BUSINESS_DATE", sap.ui.model.FilterOperator.GE, today),
          new sap.ui.model.Filter("VTEXT", sap.ui.model.FilterOperator.NE, 'Direct')],
           template: worldTemplate
    and the declaration of the table is as follows:
    var salesList = new sap.m.Table({
             headerText: "Store Sales By Country",
             noDataText: "Refreshing",
                    columns: [
                              new sap.m.Column({
                                header: new sap.m.Label({text:"Country Code"}),
                                minScreenWidth: "Phone",
                                visible: false
                            new sap.m.Column({
                            header: new sap.m.Label({text:"Country"}),
                            minScreenWidth: "Phone"
                            new sap.m.Column({
                            header: new sap.m.Label({text:"Net Sales"}),
                            minScreenWidth: "Phone"
                         ...(some other stuff here)    
    So with your example the template and binding are combined but mine is separated to I'm struggling to figure out the syntax.   I'm a bit of a hacker when it comes to this stuff.
    Thanks in advance for any help.
    Jon

  • Uploading Number with Two Decimal Places

    I am trying to import data from my excel file to table in the database using SQL Developer.
    It is working fine except that in my excel file I have data with two decimal places, but during import it shows only one decimal place. Is there any way I can import data with two decimal places?

    This works well with SQL Dev 1.5.X.
    Guess it would have been a bug in prior versions.

  • No of Decimal Places in Write Back

    Hi All,
    We are using ERPi/FDMEE writeback option to write data back to Oracle EBS12. Everything is working correctly, but while extracting data from Hyperion FDMEE is taking data in 7-8 decimal places. Is there any way to round this to 2 decimal places while exporting data ?

    Hi Laxmi,
    Inorder to store data with more than 3 decimal places,you can check the keyfigure with maximum precision checkbox available in the additional properties tab of the keyfigure.By which you can store upto 9 decimal places.
    Or
    You can change the data type from DEC to FLTP,by which you can store data upto  15 decimal places in the cube.
    Also by changing decimal places in Bex allows you to change the decimal places for the data to be displayed and if the data in the cube is holding 3 decimal places how can you display 5 decimal places in report.
    Hope it helps....
    Regards,
    Umesh.

  • Format to 2 decimal places?

    Hi, i need to display my data in 2 decimal places but now i'm getting results after some calculation (for eg. 2.336224). How can i round it off to 2.34?

    I also agree with Arun and Rajesh,
    When I need to specify the number of decimal points as part of an expression, e.g. ; - Tooltip series properties of a chart.
    I use; -
    =ROUND(Fields!Total.Value,2)
    or
    =FORMAT(Fields!Total.Value,"N")
    I hope this helps someone.
    If you have found any of my posts helpful then please vote them as helpful. Kieran Patrick Wood MCTS BI,MCC, PGD SoftDev (Open), MBCS http://www.innovativebusinessintelligence.com/ http://uk.linkedin.com/in/kieranpatrickwood

  • Download reported data in Tunisian currency (three decimal places)

    Dear all,
    if I use the download of reported data functionalety in EC-CS (TC cx3d1) and the file format is .txt, the system can not handle the three decimal places of tunesian currency and moves the comma one digit to the left side. The values are multiplied with 10 right now.
    Do I need to change the settings somewhere or is that a known problem?
    Many thanks in advance,
    Andrea Reinecke

    Hello,
    many thanks for the quick answer. Maybe I need to specify the problem a little bit: The Tunisian currency has been set to three decimal places. The databaselist shows the values correctly, e.g. 5000,000.
    If I use transaction cx3d1 to download the values, the system converts this value into a textfile. The problem is, that the values is not 5000,00 any longer, instead of 50000. That means, everything is multiplied with 10 and the decimal places are away.
    Do you know that problem? We have it only with the tunisian dinar, but not with the Hungarian currency, which has as well three decimal places.
    Best regards and many thanks in advance,
    Andrea Reinecke

  • How to convert numeric data to binary decimal in java

    How to convert numeric data to binary decimal in java Pleas egive me code example

    There is no numeric data. It's all binary. If you're talking about Strings, look at the Integer class.

  • Need to trim decimal Places in data pulled in Financial report

    Hi All,
    We have a Financial report in which in partcular column, data is being pulled by the formula :
    <<CellText("Grid1", Cur, C(A), 1)>>
    Some cells in that column contains only text comments, some cells having numbers only.
    Issue is with the numbers. Numbers when pulled in FR are being dispalyed upto 6 decimal places, i.e. 1234 is displayed as 1234.000000.
    So if somebody can suggest how can we modify the formula so that we can display the numbers without decimal values. i means , numbers being pulled are displayed as 1234 only not like 1234.000000.
    Thanks,
    Satish

    Hi there,
    You can use the function Trunc(xxxxxxx, 0) where xxxx is your retrieved value which is considered as numeric.
    However, if I were you, I would concentrate on how to resolve the issue with the smartview submission.
    Regards,
    Thanos
    One Truth about...

  • Storeing values in floate data type upto two decimal places

    Hi
    I want a float type field in my table but want to store value up to two decimal places.
    so what syntax i need to follow plz suggest.
    thanks

    it is not possible to store with Number datatype. if you are using the data to sho report, then change its format (like 45 to 45.00). if you want to store 45.00 in database, then you have to modify the datatype for that column. for this follow the following path
    1. Add a column of datatype Varchar2.
    2. Copy all the value of your number field to it.
    3. Drop the old column.
    4. However make sure that if you have used that column somewhare in arithmetic calculation, the modify it and use to_number function to do arithmetic opration.

  • Save data with more than 6 decimal places in SAP MDM 5.5

    Hi there,
    I need some help concerning saving data with about 20 decimal places (e.g. 0,00452961328622164) in MDM. I declared the datatyp "REAL", there are only 6 decimal places possible.
    How can I save this Data? Maybe exponential function?
    Please help.
    Thank you
    Thomas Pfab

    currency takes you to 14 decimal places, if you want to have it as a little work around....you can always take out that symbol if it is annoying.(ohhh and decimal is multilingual too in currency, probably not a good hack!)
    or without even knwoing what your requirement is? try normalizing the value, How many more decimal places can you hit?
    One 100 1. "ten to the zero"
    tenth 10-1 0.1 "ten to the minus one"
    hundredth 10-2 0.01. "ten to the minus two"
    thousandth 10-3 0.001. "ten to the minus three"
    ten thousand 10-4 0.0001. "ten to the minus four"
    hundred thousandth 10-5 0.00001. "ten to the minus five"
    millionth 10-6 0.000001 "ten to the minus six"
    ten millionth 10-7 0.0000001. "ten to the minus seven"
    hundred millionth 10-8 0.00000001. "ten to the minus eight"
    billionth 10-9 0.000000001. "ten to the minus nine"
    ten billionth 10-10 0.0000000001. "ten to the minus ten"
    hundred billionth 10-11 0.00000000001. "ten to the minus eleven"
    trillionth 10-12 0.000000000001 "ten to the minus twelve"
    ten trillionth 10-13 0.0000000000001. "ten to the minus thirteen"
    hundred trillionth 10-14 0.00000000000001. "ten to the minus fourteen"
    and put that field label indicating the 10th power. Like "Accuracy in 10 POW -9"
    Just a wild guess.well thats how we usually show data in catalogues too!
    (or)
    separate the integer and decimal portions into two fields and store it in the repository.(split on ',')
    -Sudhir.

  • Is it possible to convert a float to two decimal places

    Can anyone help me to convert a float to two decimal places
    float f=16;
    System.out.println(f);
    It will print 16.0
    But I want to get printed as 16.00

    "convert" no, as no conversion is needed, obviously. Format the output, yes. Read the API for String and its printf method.

Maybe you are looking for