# Simple Calculation

**URL:** https://forum.kirupa.com/t/simple-calculation/111511
**Category:** Uncategorized
**Created:** [May 27, 2004, 6:41pm UTC](https://forum.kirupa.com/t/simple-calculation/111511 "2004-05-27T18:41:00Z")
**Posts on this page:** 2
**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/111511/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…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 27, 2004, 6:53pm UTC](https://forum.kirupa.com/t/simple-calculation/111511/2 "2004-05-27T18:53:26Z")

</div>

On the last one - don’t know why the double quotes matter but you are putting two things in one trace comment so it outputs the final one. I tried a simple button on release statement:

```auto

on(release){
trace("yes", "no");
}

```

and got the expected output error of “tsk tsk! you can only trace one thing at a time numnuts!”

but using

```auto

on(release)"
trace(("yes", "no"));}

```

returns “no”

Cool experiment! :thumb:
