Addendum
is there a way to get the real values also in the debugger window ? ( Variable Viewer )
tia
Hajo
Search found 7 matches
- Thu Aug 23, 2012 11:45 pm
- Forum: Coding Questions
- Topic: Variable of type Double not acting as expected ( 1e-26 = 0 )
- Replies: 4
- Views: 1432
- Thu Aug 23, 2012 11:27 pm
- Forum: Coding Questions
- Topic: Variable of type Double not acting as expected ( 1e-26 = 0 )
- Replies: 4
- Views: 1432
Re: Variable of type Double not acting as expected ( 1e-26 =
Thanks a lot
Hajo
Hajo
- Thu Aug 23, 2012 11:16 pm
- Forum: Coding Questions
- Topic: Variable of type Double not acting as expected ( 1e-26 = 0 )
- Replies: 4
- Views: 1432
Variable of type Double not acting as expected ( 1e-26 = 0 )
Given:
PB 4.61 ( for linux )
LX: Ubuntu 10.04 LTS (64bit)
Problem: value of type Double not working as expected. Meaning a value of 1e-26 will be zero.
Example:
value.d=1.602e-16
Debug value
Debug value*value
Debug Pow(value, 2)
Debug 1e-26
we get
0.0000000000000001602
0.0
0.0
0.0
I ...
PB 4.61 ( for linux )
LX: Ubuntu 10.04 LTS (64bit)
Problem: value of type Double not working as expected. Meaning a value of 1e-26 will be zero.
Example:
value.d=1.602e-16
Debug value
Debug value*value
Debug Pow(value, 2)
Debug 1e-26
we get
0.0000000000000001602
0.0
0.0
0.0
I ...
- Fri Aug 17, 2012 11:59 pm
- Forum: Coding Questions
- Topic: Simulation, Draw to a window and update window immediatly
- Replies: 6
- Views: 1495
Re: Simulation, Draw to a window and update window immediatl
You might want to consider using a screen or windowedScreen for your simulation.
You can use SetFrameRate to control the speed.
One step after another ;-) . I see in your example the usage of 'with'. Less writing.
And as always : Thanks for helping.
Structure sPartikel
; Position
x.f
y.f ...
- Thu Aug 16, 2012 9:38 pm
- Forum: Coding Questions
- Topic: Simulation, Draw to a window and update window immediatly
- Replies: 6
- Views: 1495
Re: Simulation, Draw to a window and update window immediatl
My current code is like the following. I skipped the timer. The final code will be a multi particle simulation with a few hundred particles interacting with each other thus i see no need to slow down the simulation.
Thanks to both for your support. I was really lost with the PB GUI handling ( I am ...
Thanks to both for your support. I was really lost with the PB GUI handling ( I am ...
- Tue Aug 14, 2012 11:33 pm
- Forum: Coding Questions
- Topic: Simulation, Draw to a window and update window immediatly
- Replies: 6
- Views: 1495
Simulation, Draw to a window and update window immediatly
Sorry can not post real code , My PB on my Linux system is not working.
Task:
I would like to plot to a window and would like to see each plot immediately.
Problem:
I am able to plot to a window BUT only the result is shown
Code logic example:
...
OpenWindow
StartDrawing
for x = 1 to 100 ...
Task:
I would like to plot to a window and would like to see each plot immediately.
Problem:
I am able to plot to a window BUT only the result is shown
Code logic example:
...
OpenWindow
StartDrawing
for x = 1 to 100 ...
- Tue Oct 19, 2010 9:32 pm
- Forum: Announcement
- Topic: PureBasic - A Beginner's Guide : Free to download and adapt!
- Replies: 83
- Views: 305432
Re: PureBasic - A Beginner's Guide : Free to download and ad
Hi,
is it possible to order the guide as a paper back ?
tia
Hajo
newbe for PB ( Old GFA Basic user - )
is it possible to order the guide as a paper back ?
tia
Hajo
newbe for PB ( Old GFA Basic user - )