daeisbae / AParser

Yet another programming language for educational purpose and simplicity
https://daeisbae.github.io/AParser/
MIT License
1 stars 0 forks source link

[#90] Make value return float if there is 0 after the decimal point, else convert to integer form #91

Closed daeisbae closed 3 months ago

daeisbae commented 3 months ago

Changes

Problem

./AParser
>>> 1 - 1
0
>>> 1 / 3
0
>>> 1 / 5
0

Demo

./AParser
>>> 1 - 1
0
>>> 1 -- 1
2
>>> 1 / 3
0.333333
>>> 1 / 5
0.200000