unity split float to decimals code example Example: unity get decimal part of float decimalPart = yourFloat % 1;