# Number Boolean Problem

**URL:** <https://forum.kirupa.com/t/number-boolean-problem/241332>\
**Category:** flash\
**Created:** [October 12, 2007, 9:05am UTC](https://forum.kirupa.com/t/number-boolean-problem/241332 "2007-10-12T09:05:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gazurt](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gazurt/32/4060_2.png) [@Gazurt](https://forum.kirupa.com/u/Gazurt)\
**Post date:** [October 12, 2007, 9:05am UTC](https://forum.kirupa.com/t/number-boolean-problem/241332/1 "2007-10-12T09:05:05Z")

</div>

My little code:  
[AS]  
var hsp = !((76-24)/(80-60)-(85-24)/(120-60)\<0) ^ (60\<=80 == 60\>120);  
trace(hsp);[/AS]

In AS2 there is no problem but in AS3 error is like this:

```auto
1067# Implicit coercion of a value of type Boolean to an unrelated type Number

```

What is the problem? Thanks…
