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