Boriel Basic Forum
Float to Int? - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: How-To & Tutorials (https://forum.boriel.com/forumdisplay.php?fid=13)
+---- Thread: Float to Int? (/showthread.php?tid=426)



Float to Int? - slenkar - 2012-02-14

how do you convert a float to an int?


Re: Float to Int? - boriel - 2012-02-14

slenkar Wrote:how do you convert a float to an int?
You can use INT, as in Sinclair BASIC or CAST(Int, <float expression>). See CAST entry in the Wiki for more info.