Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Programming/Code/Standard C Library/Functions/floor

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

floor #include <cmath> double floor( double arg ); The function floor() returns the largest integer value not greater than arg. // Example for positive numbers y = 6.04; x = floor( y ); would result in x being set to 6 (double 6.0). // Example for negative numbers y = -6.04; x = floor( y ); would result in x being set to -7 (double -7.0). Related topics ceil - fmod