# \[AS3\] if statement not finding greater than zero

**URL:** <https://forum.kirupa.com/t/as3-if-statement-not-finding-greater-than-zero/217495>\
**Category:** flash\
**Created:** [February 27, 2007, 3:00pm UTC](https://forum.kirupa.com/t/as3-if-statement-not-finding-greater-than-zero/217495 "2007-02-27T15:00:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raredesign](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@raredesign](https://forum.kirupa.com/u/raredesign)\
**Post date:** [February 27, 2007, 3:00pm UTC](https://forum.kirupa.com/t/as3-if-statement-not-finding-greater-than-zero/217495/1 "2007-02-27T15:00:22Z")

</div>

Why would

if(vol \> 0){  
trace(“worked”);  
}

NOT work if the value is a decimal value between 0 and 1?  
The trace only works sometimes. I didn’t note though at what value it worked…STUPID ME…forgot and plus, it was 2AM.

I am reading in an array …byteArray, and then passing readFloat to vol.

Thanks
