truncate()

From KoLMafia
Jump to: navigation, 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).