Code: Select all
Repeat
PokeL(@y.f,x.l)
Debug y ; 0.0 0.0 0.0 0.0 0.0 0.0
; Calculation program
x+1
Until x=0
Code: Select all
Repeat
PokeL(@y.f,x.l)
Debug y ; 0.0 0.0 0.0 0.0 0.0 0.0
; Calculation program
x+1
Until x=0


Code: Select all
Repeat
y.f=x.l ;??
Debug y ; 0.0 0.0 0.0 0.0 0.0 0.0
; Calculation program
x+1
Until x=0you mean to transform a number from long (or any) to float?I want to output all numerical values to be able to imagine Float.

Since when is PureBasic a loser??? Blashfamy!! Never is PureBasic a loser, it is a winner!!oryaaaaa wrote:Will not you be able to do this from the ActiveBasic user in Japan?
I worry where to be corrected it. Is PureBasic a loser?
Code: Select all
y.f = 1.0
x.l = 0
Repeat
PokeL(@y.f,x.l)
PokeF(@y.f,x.l)
Debug y ; 0.0 0.0 0.0 0.0 0.0 0.0
CallDebugger
; Calculation program
x+1
Until x=0
EndIt is possible to translate correctly or I am uneasy.I want to give the real number to a specific equation of higher degree and to search for the solution. I want to obtain the combination of all the real numbers input to the Float type. The Long type is the same byte as the Float type, and obtaining all the combinations besides for the Long type : because it is easy.
Memory copy from Long type in Float type (For the unit of bit).

It works perfectly here!oryaaaaa wrote:Why doesn't this work?
Thank youCode: Select all
Repeat PokeL(@y.f,x.l) Debug y ; 0.0 0.0 0.0 0.0 0.0 0.0 ; Calculation program x+1 Until x=0
Code: Select all
x.l = 12
y.f = 35.456
Debug y
y = x + ( y - Int(y) )
Debug y
Code: Select all
Repeat
PokeL(@y.f, x)
Debug StrF(y,70)
; Calculation program
x+1
ForEver0.0000000000000000000000000000000000000000000000000000000000000000000000
0.0000000000000000000000000000000000000000000014012984643248171000000000
0.0000000000000000000000000000000000000000000028025969286496341000000000
0.0000000000000000000000000000000000000000000042038953929744512000000000
0.0000000000000000000000000000000000000000000056051938572992683000000000
0.0000000000000000000000000000000000000000000070064923216240854000000000
0.0000000000000000000000000000000000000000000084077907859489024000000000
0.0000000000000000000000000000000000000000000098090892502737195000000000
0.0000000000000000000000000000000000000000000112103877145985370000000000
0.0000000000000000000000000000000000000000000126116861789233540000000000
0.0000000000000000000000000000000000000000000140129846432481710000000000
0.0000000000000000000000000000000000000000000154142831075729880000000000
...