Announcement

Collapse
No announcement yet.

Decimal float double real

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Decimal float double real

    Hi everyone

    I have a question, I need print a value like below.

    Exemple:

    A = 100,00;
    B = 3.200,10;
    TOTAL = A + B;

    The final result is 103.2 why? I need of the Total 3.300,10


    How I can make this?

    Thanks all!

  • #2
    the point is the point.

    In some countries decimals are separated with a comma (,) and thousands with a point (.).
    Just replace:
    100,00 by 100.00
    and 3.200,10 by 3200.10 (or 3,200.10)
    and you will see the final result will be 3300,10 (or 3,300.10)

    mario
    programming is very easy, just put the characters in the right order....

    Comment

    Working...
    X