Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bigdec and bigint in gno ?? #650

Closed
r3v4s opened this issue Mar 25, 2023 · 1 comment
Closed

bigdec and bigint in gno ?? #650

r3v4s opened this issue Mar 25, 2023 · 1 comment

Comments

@r3v4s
Copy link
Contributor

r3v4s commented Mar 25, 2023

Description

Since go (and perhaps plus gno) supports 64bit as maximum value for representing integer and float, I think math/big is one necessary thing in gno.

While debugging some codes, I found PR #306 and it looks like @jaekwon is trying to implment similar thing by supporting bigdec and bigtint types as native type for gno.

bigint was defined https://github.com/gnolang/gno/blob/master/pkgs/gnolang/uverse.go#L112, but bigdec hasn't.

There is few things I'm having trouble with figuring it out.

  1. Does bigdec has definiation code (which I couldn't found)
  2. Can I convert native int64/uint64/float64 to bigint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant