digital literacy for everyone
[lit][generate-title]
[lit]
[fig]
#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/
p "input a number: " prints lineinput
function makeintcommand p
now p str # make it a string
buf ""
forin t p
ifequal t "."
break # stop looping when . is found
else
now buf plus t swap now buf # buf += t
fig
next
now = buf ; val ; return now # make into numeric
fig
now "an integer version of your number is: " prints
now makeintcommand p print
home: [lit]https://freesoftwareresistance.neocities.org[lit]