liancheng / rose

ROSE is an Obscure Scheme Evaluator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#e1.1 should be an exact number.

liancheng opened this issue · comments

Commit

9d43207

Input

$ rsi
#e1.1

Expected output

10/11

Actual output

1.100000

Additional information

The problem lies in the function fix_exactness and those functions that parse decimal numbers in number_reader.c. Whenever there is a decimal dot, the number is considered to be an inexact number, despite whether there is a #e prefix.

Fixed in d17566e