![]() |
Float to Int? - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: How-To & Tutorials (https://www.boriel.com/forum/forumdisplay.php?fid=13) +---- Thread: Float to Int? (/showthread.php?tid=426) |
Float to Int? - slenkar - 02-14-2012 how do you convert a float to an int? Re: Float to Int? - boriel - 02-14-2012 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. |