Project

General

Profile

Actions

Bug #13848

closed

BigDecimal.new('200.') raises an exception

Added by ddoherty03 (Daniel Doherty) over 6 years ago. Updated over 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
[ruby-core:82512]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0