Truncate

From Kolmafia
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

int truncate(float number )

  • number is the number to truncate

Returns the truncated integer version of number (that is to say, everything after the decimal point is ignored completely, regardless of how close to or far from the integer portion the supplied number may be).