Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Latest commit

 

History

History
37 lines (28 loc) · 1.13 KB

CLASSIFY.org

File metadata and controls

37 lines (28 loc) · 1.13 KB

Top | Up (Math) | < Previous (POW) | Next (PAGE NAME) >

CLASSIFY

Checks if a number is infinity or NaN.

Syntax

CLASSIFY number# OUT group%
parameterdescription
number#the number to check
OutputDescription
group%
ValueMeaning
0Regular number
1Infinity or -infinity
2NaN

Examples

PRINT CLASSIFY(10) '0 (normal)
PRINT CLASSIFY(EXP(999)) '1 (infinity)
PRINT CLASSIFY(EXP(999)*0) '2 (nan)

Version Information

3.1.0

Introduced.1

References

1 SmileBoom, “Additions/Changes in Ver. 3.1.0 (March 4, 2015).” http://smilebasic.com/en/debug/archive/


Top | Up (Math) | < Previous (POW) | Next (PAGE NAME) >