Bug in Sign Function

Discuss Lemur and share techniques.
Post Reply
brianc
Regular
Posts: 87
Joined: 10 Jan 2012 02:16

Bug in Sign Function

Post by brianc »

The sign function doesn't seem to work for negative values greater than -1. For example, sign(-0.999999) returns 0.

If you need a workaround, you can create a function with "val<0?-1:1"

Sorry if this is duplicate. It didn't turn up in a search.
Post Reply