Also, the reason you got your cryptic error is that there are multiple symbols named `toInt`, your proc is already defined in [the system module](https://nim-lang.org/docs/system.html#toInt%2Cfloat). This error message has to be changed already, the [first github issue for it](https://github.com/nim-lang/Nim/issues/6359) was opened in 2017.
- Map float to int JJ
- Re: Map float to int Yardanico
- Re: Map float to int Hlaaftana