how to take an amount or less from a float unity code example Example: unity get decimal part of float decimalPart = yourFloat % 1;