Storing big numbers (bigger than int64)

Hi,

I need to store big numbers (bigger than int64)
is it possible?

sidenote:
I’m using golang and it provides big package to handle such big numbers

Hi,
You may want to consider using decimal128.
Thanks,
Rafael,

Thank you Rafael for your help
decimal128 is not supported by golang (at least not as a fundamental type)
also in my use case, it turns out i don’t really need to store all the exact digits, so i went with float64 (double in bson)

1 Like