Original post

Hi all,

I have 2 large int64 values, A and B. One of them, namely B, is close to math.MaxInt64.

I want to know what percentage is A compared to B. Namely I want to compute (A / B) * 100. This percentage must be a float64 value.

My fear is that result := float64(A) / float64(B) * 100 could potentially make a large rounding error, when converting A and B to float64, then again when dividing them.

How legitimate is this fear ? What is your experience ?