
02-21-2006, 04:02 AM
|
|
Former Classic Staff
|
 |
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
|
|
float comparison error
|
I just made a player rank database for classic, and I ran into a little operator issue. I used a binary search method for maintaining sorted order, yet the equation I decided on ended up giving this high decimal float.
function onWeaponFired() {
player.chat = (0 < 0.0001);
}
returns false |
|
|
|