a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 mathffp.library
  SPAbs
  SPAdd
  SPCeil
  SPCmp
  SPDiv
  SPFix
  SPFloor
  SPFlt
  SPMul
  SPNeg
  SPSub
  SPTst
Include
GuruMeditation
Docs » Autodocs » mathffp.library » SPTst

NAME

	SPTst - Compares a float against zero (0.0).

SYNOPSIS

	result = SPTst(fnum)
D0 D1
int SPTst(float fnum);

FUNCTION

	Accepts a floating point number and returns the condition
codes set to indicate the result of a comparison against
the value of zero (0.0). Additionally, the integer functional
result is returned.

INPUTS

	fnum 	- floating point number.

RESULT

	Condition codes set to reflect the following branches:
EQ - fnum = 0.0
NE - fnum != 0.0
PL - fnum >= 0.0
MI - fnum < 0.0
Integer functional result as:
+1 => fnum > 0.0
-1 => fnum < 0.0
0 => fnum = 0.0

BUGS

	None.

SEE ALSO

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Future Crew

RZR
RBS
FC
ANA

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se