You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, stumbled upon this as just learning Rust and looking at options to provide more accurate conversions between base 12 and base 10 that I can achieve with Javascript.
I attempted to use this like:
let base12 = BaseCustom::<char>::new("0123456789ab".chars().collect());
println!("{}", base12.decimal("1.6"));
Expecting (/hoping) would get result of 1.5 but it panicked
Any chance this could be adapted to support fractions?
The text was updated successfully, but these errors were encountered:
bristoljon
changed the title
Question: Can this support decima?ls/fractions
Question: Can this support decimals/fractions
Dec 8, 2021
Hi, stumbled upon this as just learning Rust and looking at options to provide more accurate conversions between base 12 and base 10 that I can achieve with Javascript.
I attempted to use this like:
Expecting (/hoping) would get result of 1.5 but it panicked
Any chance this could be adapted to support fractions?
The text was updated successfully, but these errors were encountered: