Actions
Feature #10331
openString#to_r to recognize negative denominators
Status:
Open
Assignee:
-
Target version:
-
Description
Current behavior or String#to_r
does not recognize negative denominators. This can lead to confusing results:
"1/-3".to_r
#=> (1/1)
I propose negative denominators to be recognized.
"1/-3".to_r
#=> (-1/3)
No data to display
Actions
Like0