a#=3.14159
ba=createbank(4)
pokefloat ba,0,a#
a2%=peekint(ba,0)
print a2%
pokeint ba,0,a2%
a#=peekfloat(ba,0)
print a#
ba=createbank(4)
pokefloat ba,0,a#
a2%=peekint(ba,0)
print a2%
pokeint ba,0,a2%
a#=peekfloat(ba,0)
print a#
To get the numeric equivelant, why not just read it out as a float and convert it to an int, like this:
a#=3.14159 ba=CreateBank(4) PokeFloat ba,0,a# a2%=PeekFloat(ba,0) Print a2%
... or am I misunderstanding the question?