guibec / rpgcraft

RPGCraft - Minecraft / Terraria / RPGMaker mashup
MIT License
8 stars 2 forks source link

cli: improved error handling for to_int64(), added to_double() #82

Closed jstine35 closed 5 years ago

jstine35 commented 5 years ago

Handles cases like:

10.f     <-- silent conversion to int
100.0  <-- silent conversion to int
100.1  <-- warns that value will be truncated

Currently it also handles d as well as f, tho I think I'll change it before merging to master.