How to get a fraction from a float number? December 29, 2023 by Tarik function frac(f) { return f % 1; }