Back to basic Floating poit math...UGH!
OK, I think I'm dumb!· I can't figure out how to use the FloatMath Object.· I understand the use of the different methods, that is no problem.· this example is extreme but basic.· X and Y need to be used other places.· I need to have X and Y be float values so as to use them elsewhere!!!!· The Single declaration is a joke...sort of!
OBJ
·····
··· Fp· : "FloatMath"
··· FS· : "FloatString"
VAR
······Long X
······Long ·Y
····· Single Z···· '··· LOL
Pub· Whatever | z
X:=56.2
Y=25.5
Z=fp.Fmul(x,y)
Pub Answer
' Show 'z' in whatever fashion
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Was it pin 11 or 26?· Hmmm....··I think the smell of smoke tells the whole story.· Must be 26.
Michael King
Application Engineer
R&D
Digital Technology Group
OBJ
·····
··· Fp· : "FloatMath"
··· FS· : "FloatString"
VAR
······Long X
······Long ·Y
····· Single Z···· '··· LOL
Pub· Whatever | z
X:=56.2
Y=25.5
Z=fp.Fmul(x,y)
Pub Answer
' Show 'z' in whatever fashion
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Was it pin 11 or 26?· Hmmm....··I think the smell of smoke tells the whole story.· Must be 26.
Michael King
Application Engineer
R&D
Digital Technology Group
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Was it pin 11 or 26?· Hmmm....··I think the smell of smoke tells the whole story.· Must be 26.
Michael King
Application Engineer
R&D
Digital Technology Group