Scol standard library package  0.3.1
Common and usefull functions for all Scol applications
Functions | Variables
float.pkg File Reference

Scol Standard Library - Floatting point numbers API. More...

Functions

 std_fClamp (f, startf, endf)
 Clamp a float number in a range. More...
 
 std_fCmp (f1, f2)
 Compare two float numbers (depending of epsilon) More...
 
 std_fDivide (f1, f2)
 Perform a division between two float numbers The function returns a tuple : the result, the entire and the decimal parts of the result. More...
 
 std_fEpsilonGet ()
 Get the 'epsilon' to compare deux floating point numbers. More...
 
 std_fEpsilonSet (f)
 Set the 'epsilon' to compare deux floating point numbers. More...
 
 std_fInRange (f, startf, endf)
 Return if a a float number in a range. More...
 
 std_fIntDec (f)
 Return the entire and the decimal parts of a float number. More...
 
 std_fIsZero (f)
 Return if a float number is near at zero (depending of epsilon) More...
 
 std_vectorIsEqualF (v1, v2)
 Return if two float vectors are equals. More...
 

Variables

var STD_LOOP_EPSILON =0.000001
 

Detailed Description

Scol Standard Library - Floatting point numbers API.

Author
Scol team
Version
0.1

This API provides some functions to manipulate the floatting point numbers (F)