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

Decimal data type #21754

Open
2 tasks
bramvbilsen opened this issue Jun 28, 2024 · 0 comments
Open
2 tasks

Decimal data type #21754

bramvbilsen opened this issue Jun 28, 2024 · 0 comments
Labels
Feature Request This issue is made to request a feature.

Comments

@bramvbilsen
Copy link
Contributor

bramvbilsen commented Jun 28, 2024

Describe the feature

A new numerical data type called Decimal that follows the IEEE 754-2008 spec

Use Case

Number stored in the proposed Decimal type allow for storing data sensitive to impression. This is particularly useful when working with financial data. Currently available data types, such as floats, are not suitable for this due to rounding errors and impression being inherent to the type.

Proposed Solution

Add a new Decimal type which strictly follows the IEEE 754-2008 spec (https://en.wikipedia.org/wiki/IEEE_754).

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

0.4.5 365bd18.e6b43a1

Environment details (OS name and version, etc.)

V full version: V 0.4.5 365bd18.e6b43a1
OS: macos, macOS, 14.5, 23F79
Processor: 10 cpus, 64bit, little endian, Apple M1 Max

getwd: /x/y/z
vexe: /x/y/z/v/v
vexe mtime: 2024-03-20 20:08:31

vroot: OK, value: /x/y/z/v
VMODULES: OK, value: /x/y/z/.vmodules
VTMP: OK, value: /tmp/v_501

Git version: git version 2.44.0
Git vroot status: 0.4.5-5-ge6b43a16 (581 commit(s) behind V master)
.git/config present: true

CC version: Apple clang version 15.0.0 (clang-1500.3.9.4)
thirdparty/tcc status: thirdparty-macos-arm64 5c1d002f

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@bramvbilsen bramvbilsen added the Feature Request This issue is made to request a feature. label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is made to request a feature.
Projects
None yet
Development

No branches or pull requests

1 participant