Matthew - 2008-03-24

Logged In: YES
user_id=723706
Originator: NO

The problems you are having are because you're pushing right up against the accuracy limits of the Single number format. It's only accurate up to about 7 decimal digits. Try this program:

dim i as integer, s as single, d as double
for i = 0 to 11
d = d * 10 + i mod 10
s = csng(d)
print using "########### "; s, d
next i

I can't reproduce your last Format problem with dblValue. (I'm assuming that's supposed to be a Double.) What operating system and FreeBASIC version are you using (try running "fbc -version")? It might also help to know your regional settings.