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

Feature Request - convert integers to cents #36

Open
tank-trax opened this issue Jul 29, 2024 · 1 comment
Open

Feature Request - convert integers to cents #36

tank-trax opened this issue Jul 29, 2024 · 1 comment

Comments

@tank-trax
Copy link

tank-trax commented Jul 29, 2024

I would like to request that xen-calc adds the ability to convert numbers with decimal places into cents using the function:

log(a/b)*1200/log(2)

Currently xen-calc already works with ratios but I haven't found a way to use integers.

My request would be to allow for numbers with decimals to be converted into cents.

For example:

log(1.495349)*1200/log(2) = 696.578681756c

and

log(1.5014235)*1200/log(2) = 703.597162895c

Thanks

@TallKite
Copy link

1.495349 can be entered as the ratio 1495349/1000000, and you can get the cents that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants