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 » SPCmp

NAME

	SPCmp -- Compares two floating point numbers.

SYNOPSIS

	result = SPCmp(fnum1, fnum2)
D0 D0 D1
int SPCmp(float fnum1, float fnum2);

FUNCTION

	Accepts two floating point numbers and returns the condition
codes set to indicate the result of said comparison. Additionally,
the integer functional result is returned to indicate the result
of said comparison.

INPUTS

	fnum1 	- floating point number.
fnum2 - floating point number.

RESULT

	Condition codes set to reflect the following branches:
GT - fnum2 > fnum1
GE - fnum2 >= fnum1
EQ - fnum2 = fnum1
NE - fnum2 != fnum1
LT - fnum2 < fnum1
LE - fnum2 <= fnum1
Integer functional result as:
+1 => fnum1 > fnum2
-1 => fnum1 < fnum2
0 => fnum1 = fnum2

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:

Phenomena

DC
FC
SCX
PHA

Comments:

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