Continuing from @Oscar_Smith, …or use GitHub - JuliaMath/FixedPointNumbers.jl: fixed point types for julia or rational numbers (3 // 7
). These are all good options, under the right circumstances.
Hey, maybe this post helps: PSA: floating-point arithmetic.