# Simple maths calculation

**URL:** <https://forum.kirupa.com/t/simple-maths-calculation/276581>\
**Category:** flash\
**Created:** [December 1, 2008, 5:24am UTC](https://forum.kirupa.com/t/simple-maths-calculation/276581 "2008-12-01T05:24:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![asscripter](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@asscripter](https://forum.kirupa.com/u/asscripter)\
**Post date:** [December 1, 2008, 5:24am UTC](https://forum.kirupa.com/t/simple-maths-calculation/276581/1 "2008-12-01T05:24:51Z")

</div>

Hi,

A simple subtraction of two numbers 0.07 and 0.15 should have result of 0.55. But the flash player 9 or Flex Builder 3 give the following result.

```php
trace(Number(0.70 - 0.15))//returns 0.5499999999999999 in flex builder 3 or FP9 

```

To my surprise, this calculation gives correct result of 0.55 in flash player 8.

I’m working on a Energy modeling application. Thus it is absolutely necessary for me to show the calculations to the correct precisions.

I cannot even round off the calculation as the equation is a resultant of some other calculation and i cannot do the round-off for each calculation, else it will make a huge difference in the final energy prediction outcome. Pls help me in this issue.
