Project

General

Profile

Actions

Bug #21831

closed

Prism doesn't count underscores in the fraction part of rational float

Bug #21831: Prism doesn't count underscores in the fraction part of rational float

Added by nobu (Nobuyoshi Nakada) about 15 hours ago. Updated about 14 hours ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:124474]

Description

Good.

$ ruby3.3 -e 'p 0.1_2r.to_f'
0.12

$ ruby3.4 --parser=parse.y -e 'p 0.1_2r.to_f'
0.12

Wrong.

$ ruby3.4 -e 'p 0.1_2r.to_f'
0.012
Actions

Also available in: PDF Atom