"Sputnik" help  
Sputnik Help
Floor

Description

 

Parameters

   

Return Value

Success: Returns true.
Failure: Returns false.

Remarks

 

Related

Example

Example of usage:

my $format = "%.1f \t%.1f \t%.1f \t%.1f \t%.1f\n";
printf("Value\tRound\tFloor\tCeil\tTrunc\n");
printf("-----\t-----\t-----\t----\t-----\n");
printf($format,  2.3, Round( 2.3), Floor( 2.3), Ceil( 2.3), Trunc( 2.3));
printf($format,  3.8, Round( 3.8), Floor( 3.8), Ceil( 3.8), Trunc( 3.8));
printf($format,  5.5, Round( 5.5), Floor( 5.5), Ceil( 5.5), Trunc( 5.5));
printf($format, -2.3, Round(-2.3), Floor(-2.3), Ceil(-2.3), Trunc(-2.3));
printf($format, -3.8, Round(-3.8), Floor(-3.8), Ceil(-3.8), Trunc(-3.8));
printf($format, -5.5, Round(-5.5), Floor(-5.5), Ceil(-5.5), Trunc(-5.5));

// PRINTS
// Value   Round   Floor   Ceil    Trunc
// -----   -----   -----   ----    -----
// 2.3     2.0     2.0     3.0     2.0
// 3.8     4.0     3.0     4.0     3.0
// 5.5     6.0     5.0     6.0     5.0
// -2.3    -2.0    -3.0    -2.0    -2.0
// -3.8    -4.0    -4.0    -3.0    -3.0
// -5.5    -6.0    -6.0    -5.0    -5.0

 


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org