Truncating a Double

Xojo®‘s API provides us with three ways to convert a decimal number to a whole number: Round(), Floor() and Ceil(). But if you only need to truncate a decimal number to its integer part, there is no out-of-the-box method. So let’s implement our own truncate method.