Double varial in Compaq Pascal
Double varial in Compaq Pascal
(OP)
I'm working with Compaq Pascal. The problem I'm having is when assigning a value to a variable of Double type (e.g. d := 12345678.9876543, I have place D0 at the end to make it double precision (d := 12345678.9876543D0). Otherwsie it will be treated as single precision. What I want to achieve is to find a way to make the value treated as double precision without adding the D0). Any help will be highly appreciated.
Shu
Shu
RE: Double varial in Compaq Pascal
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.
RE: Double varial in Compaq Pascal
To find an option at compile time is the solution that I'm trying to get. But so far no success. Any further help will be highly appreciated.
Best regards,
Bill
RE: Double varial in Compaq Pascal
The only possible solution is to check if there is some kind of option to change. In Borland Pascal there is no option to choose between single or double quotes, so I have to live with that.
Besides, if you worry about syntax, you shouldn't start programming. Every language has its own peculiar syntax for doing things, get over it! It's the way how you use this syntax to create fast, reliable and foolproof applications that counts.
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.
RE: Double varial in Compaq Pascal
The thing is not that I don't like the syntax. We're trying to convert Oregon pascal programs with double precision values to Compaq pascal. It would be very difficult to go over all the programs and add D0 to every decimal value in the programs.
Best regards,
Bill
RE: Double varial in Compaq Pascal
Regards,
Bert Vingerhoets
vingerhoetsbert@hotmail.com
http://student.vub.ac.be/~bvingerh/
Don't worry what people think about you. They're too busy wondering what you think about them.