ddoherty03 (Daniel Doherty)
- Login: ddoherty03
- Registered on: 03/18/2016
- Last sign in: 08/29/2017
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
08/30/2017
-
11:21 AM Ruby Bug #13848: BigDecimal.new('200.') raises an exception
- Robert, yes, I think it should be the same as BigDecimal.new('200.0'). The problem arises, not when a programmer is typing the number---requiring a programmer to be explicit is OK by me---but when strings are processed that come from a ...
08/29/2017
-
12:24 PM Ruby Bug #13848 (Closed): BigDecimal.new('200.') raises an exception
- BigDecimal.new('200.') raises an exception:
ArgumentError: invalid value for BigDecimal(): "200."
It should accept this as a valid decimal number.
This requires fixing numbers read in from the wild.
03/18/2016
-
01:02 PM Ruby Bug #12196 (Closed): lib: Date.valid_date? returns incorrect response for negative day
- ~~~
require 'date'
puts RUBY_VERSION
if Date.valid_date?(2016, 2, -1)
puts "Valid"
else
puts "Invalid"
end
~~~
This reports 'Valid' for a negative day number.