How to find the sign of a value?

Blitz3D Forums/Blitz3D Programming/How to find the sign of a value?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

heh..

this discussion is like.. kinda meaningless...

Its a function, its there, use it..

if I would have to program every tiny function myself everytime I needed something done, I would hate programming.. like some of you said... SGN() is unlikely to be your bottleneck, and if it is, you're doing something horribly wrong. People have been writing games for maaaaany years now, and we left the ancient practice of dreading speed hits with if-then statements long ago.

If you're THAT interested in optimizing, you wouldn't use blitzbasic in the first place.. hardly the fastes language out there.. :)