Scalar for currency and crypto

What I want to do

I need to store currencies in dgraph which will then be used for profit/loss calculations. Which scalar should I use? Will Float be accurate?

Use integers to store and calculate. Divide by the number of decimal places when displaying the value to users.

1 Like