Can't make decimal consts?

Blitz3D Forums/Blitz3D Beginners Area/Can't make decimal consts?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Variables by default are integers. Suffix the variable name with # to make it a float or $ to make it a string. If you want to be explicit, % is an integer. I believe it's only necessary to suffix when you first declare the variable, but some people like to use the variable's suffix throughout their code.

Const foo# = 0.1
Print foo