solidDB Help : solidDB reference : solidDB SA: Function reference : SaDfloatCmp
  
SaDfloatCmp
SaDfloatCmp compares two dfloat values.
Synopsis
int SA_EXPORT_H SaDfloatCmp(
  SaDfloatT* p_dfl1,
  SaDfloatT* p_dfl2)
Parameters
The following table describes the parameters:
 
Parameters
Usage type
Description
p_dfll
in, use
Pointer to dfloat variable
p_dfl2
in, use
Pointer to dfloat variable
Return value
< -1 if p_dfl1 < p_dfl2
= 0 if p_dfl1 = p_dfl2
> 1 if p_dfl1 > p_dfl2
This parallels the strcmp() function in C, which returns a negative number if the first parameter is less than the second, zero if the two are equal, and a positive number (greater than zero) if the first parameter is greater than the second.
Go up to
solidDB SA: Function reference