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

Unable to convert centi celcius to celcius #78

Open
RohitNalePUCSD opened this issue Jul 16, 2024 · 0 comments
Open

Unable to convert centi celcius to celcius #78

RohitNalePUCSD opened this issue Jul 16, 2024 · 0 comments

Comments

@RohitNalePUCSD
Copy link

RohitNalePUCSD commented Jul 16, 2024

When converted 100 from centi celcius (Cel/100) to Cel, it works. But for other values, it is returning wrong results, any help will be appreciated!!

Unitwise(100, "Cel/100").convert_to("Cel")
=> #<Unitwise::Measurement value=1 unit=Cel>
 Unitwise(150, "Cel/100").convert_to("Cel")
=> #<Unitwise::Measurement value=138.075 unit=Cel>

Unitwise(200, "Cel/100").convert_to("Cel")
=> #<Unitwise::Measurement value=275.15 unit=Cel>
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

1 participant