Thanks Norm and XorA.
Indeed both solutions work. I was a little confused since the very same code worked on Lattice 3.04 (Atari ST). It seems as you stated correctly that Lattice 3.02 (QL) is not able to promote ints to doubles correctly.
Thank you guys!
Search found 3 matches
- Sat Jan 12, 2019 8:53 pm
- Forum: Software & Programming
- Topic: Bug in QL C - Lattice C?
- Replies: 4
- Views: 2940
- Sat Jan 12, 2019 6:12 pm
- Forum: Software & Programming
- Topic: Bug in QL C - Lattice C?
- Replies: 4
- Views: 2940
Bug in QL C - Lattice C?
Hello
After 30 years or more I've come back to QL playing with ancient QLC. I'm using the POW() function but it seems I've never been able to obtain correct results. This little program below returns 1.000000 whereas it should return 4.000000.
Is that a bug or do you thing I'm doing something ...
After 30 years or more I've come back to QL playing with ancient QLC. I'm using the POW() function but it seems I've never been able to obtain correct results. This little program below returns 1.000000 whereas it should return 4.000000.
Is that a bug or do you thing I'm doing something ...
- Tue Nov 08, 2016 8:39 pm
- Forum: Software & Programming
- Topic: Implementing Trap # 3 SO.POINT
- Replies: 0
- Views: 1499
Implementing Trap # 3 SO.POINT
Hello all.
just for nostalgic reasons I'm using Metacomco QL C to implement a plot routine using Trap # 3, SO.POINT as per the code below. I think i'm following all the parameters described in the QL Technical guide.
However, when running the program, no matter what the coordinates I use for x and ...
just for nostalgic reasons I'm using Metacomco QL C to implement a plot routine using Trap # 3, SO.POINT as per the code below. I think i'm following all the parameters described in the QL Technical guide.
However, when running the program, no matter what the coordinates I use for x and ...