Quantcast
Viewing all articles
Browse latest Browse all 54

Answer by Pharaoh_

Indeed, floats are limited by switch statements. A workaround is to cast it to int, and, since you are using integers on the switch, then use: switch ((int) path) {}. Alternatively, if you wish to work with decimals, use an if/then/else.

Viewing all articles
Browse latest Browse all 54

Trending Articles