Full WinBlitz3D FREE

Blitz3D Forums/Blitz3D Programming/Full WinBlitz3D FREE

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Smiff: Sample ...
CommaPos = Int(2)
MySpinValue = Int(100) * (10 * CommaPos)

If CommaPos = 2 so the value from 100 (MySpinValue) is later 1.00
See code for calculation:
MyValue# = Float(MySpinValue / (10 * CommaPos))

You must set Int(YourMaxValue) * (10 * CommaPos) as maximally value on spinner gadget for powerful calculation.

This works good, but this have a little problem: In this sample MySpinValue works with "10000" as value instead of "100". Problem: Integers can have max. 4294967295 unsigned and signed max. 2147483647.

bye


sry for my bad english