# Negative numbers

**URL:** https://forum.kirupa.com/t/negative-numbers/129126
**Category:** Uncategorized
**Created:** [November 19, 2004, 6:42pm UTC](https://forum.kirupa.com/t/negative-numbers/129126 "2004-11-19T18:42:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chapster](https://avatars.discourse-cdn.com/v4/letter/c/958977/32.png) [@chapster](https://forum.kirupa.com/u/chapster)
#### Post date: [November 19, 2004, 6:42pm UTC](https://forum.kirupa.com/t/negative-numbers/129126/1 "2004-11-19T18:42:43Z")

</div>

I am trying to work this out

```auto

	obj.pram2=-86.2;
	var adjustMask = -170.2-obj.pram2;
trace("adjustMask :"+adjustMask );
output=adjustMask :-84

```

When I do the Math on a calculator it works out to be -256.4 which is what it should be. Why is this happening.  
-170.2 subtract -86.2=negative 256.4
