From: agustincornu+ruby@... Date: 2020-09-23T21:34:24+00:00 Subject: [ruby-core:100090] [Ruby master Bug#17183] Float round working weirdly Issue #17183 has been reported by agustincornu (Agustin Cornu). ---------------------------------------- Bug #17183: Float round working weirdly https://bugs.ruby-lang.org/issues/17183 * Author: agustincornu (Agustin Cornu) * Status: Open * Priority: Normal * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- I encountered this issue when casting a specific float with a especific round argument. ``` 0.5.round(15) => 0.5 0.5.round(16) => 0.5000000000000001 0.5.round(17) => 0.5 ``` -- https://bugs.ruby-lang.org/ Unsubscribe: