Dataflow resulting in small digit differences

Options

Hello,

i have an unexpected behaviour with a Dataflow.

Performing a simple calculation, C = A + B, a double cube is somehow getting tiny amounts.  All cubes are Double type. Representing the information in a dataview, all rows only have numbers with 2 decimal places: yet the subtotal shows very small digits differences (e.g. -0.000000000003637979).

Do you know why this could happen?

Thanks,

 

Tagged:

Answers

  • Unknown
    Unknown Active Partner
    Options

    Floating point accuracy is indeed a downside of using a Single or Double datatype. One alternative could be using Integer datatypes and store values at a multiple of their significant value. 

  • Björn Reuber
    Options

    hi

    Integer would be a bad choice, cause it's from -32.000 to +32.000 (approx.) so if you want to use it for big numbers, those can't be used. Furtermore using Versions in Integer Cubes can lead to some (technical correct) behaviors, cause on aggregated level the number is to big to be stored in an Integer Cube

     

    Regards

    Björn