The comment in the header is bad; it always returned an integer in 0-15 range (this is passed straight from Java). If you want 0.0 to 1.0, you should divide by 15.0, not 100.0.
The comment in the header is bad; it always returned an integer in 0-15 range (this is passed straight from Java). If you want 0.0 to 1.0, you should divide by 15.0, not 100.0.