Search found 6 matches

by Goos E
Thu Mar 26, 2009 12:16 pm
Forum: Coding Questions
Topic: Incorrect behavior of a comparison
Replies: 11
Views: 1206

It has something to do with the way a Floating point variable is stored. I am not sure how it works. The example you wrote it shows that the variable UVa = 5.099999990463257 and UV=5.0 so when you subtract UV from UVa the result=0.09999999046325 that is smaller then BM wich is actualy 0 ...
by Goos E
Wed Mar 25, 2009 8:56 pm
Forum: Coding Questions
Topic: Ogre and smooth scrolling
Replies: 11
Views: 2427

Runs fine on my computer too.

Win XP SP3
AMD processor
NVidea Mobility Radion X700 xl
by Goos E
Wed Mar 25, 2009 3:53 pm
Forum: Coding Questions
Topic: How to redim array in a procedure
Replies: 2
Views: 942

Thank you very much that helped.
by Goos E
Wed Mar 25, 2009 3:32 pm
Forum: Coding Questions
Topic: How to redim array in a procedure
Replies: 2
Views: 942

How to redim array in a procedure

Hello,

I am trying to write a procedure witch inits a program. I am reading a array from a textfile. I want to use this array global in my program. my question is How to redim a array in a procedure while i use it global. With the next example i get a error named "Redim can't be used on a non ...
by Goos E
Sun Mar 15, 2009 3:25 pm
Forum: Coding Questions
Topic: Read a textfile to numbers
Replies: 2
Views: 1205

Thank you very much that helped.

Goos.
by Goos E
Sun Mar 15, 2009 3:05 pm
Forum: Coding Questions
Topic: Read a textfile to numbers
Replies: 2
Views: 1205

Read a textfile to numbers

I would like to read a list like i show you in numbers. I tried with readlong readinteger readfloat but i get no right numbers. I also tried readbyte and convert it myself.
The list is in a File at my computer

2 0 14 0
129987.20 515604.60
129941.10 515435.40
129927.30 515199.20
129931.40 515155.20 ...