# Simple Calculation

**URL:** https://forum.kirupa.com/t/simple-calculation/52819
**Category:** flash
**Created:** [May 27, 2004, 6:41pm UTC](https://forum.kirupa.com/t/simple-calculation/52819 "2004-05-27T18:41:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)
#### Post date: [May 27, 2004, 6:41pm UTC](https://forum.kirupa.com/t/simple-calculation/52819/1 "2004-05-27T18:41:00Z")

</div>

Ok guys, i was trying a not to hard calculation in flash… 😉

> 

// var calc, with dot. Output: 25, ok, true…  
nummer=10\*2.5;  
trace(nummer);

// var calc, with comma. Output: 20, where did the .5 go?  
nummer=10\*2,5;  
trace(nummer);

// direct trace, with dot. Output: 25, ok, true…  
trace((10\*2.5));

// direct trace, with comma. Output: 5, should be 20, when i look above…, but why 5 this time?  
trace((10\*2, 5));

read the comments…
