Quantcast
Channel: Answers by "Pharaoh_"
Viewing all articles
Browse latest Browse all 54

Answer by Pharaoh_

$
0
0
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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>