FAQ  •  Register  •  Login

Float to Int?



Posts: 282

Joined: Sun Feb 13, 2011 3:33 am

Location: Kentucky US, used to be Birmingham UK

Post Tue Feb 14, 2012 2:37 pm

Float to Int?

how do you convert a float to an int?


Site Admin

Posts: 1500

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Tue Feb 14, 2012 2:43 pm

Re: Float to Int?

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.

Return to How-To & Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.