EDIT:
Using shl, MOD, DIV, shr, or any other operators. I can’t get conditionals to work.
In a constant round up an extended number e.g.
const
aaa = 3.14;
bbb = 3.14; // round this one up
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Normally one would use
trunc()orround(). If that doesn’t work for you I suggest that you try to find a forum that specializes PaxCompiler, or PascalScript. You can’t be the first one that wants to do this, and someone that is more familiar with these compilers might know how to solve the problem with these compilers.I tried it in Free Pascal and there it works. IIRC it works in Borland Delphi and Turbo Pascal too (it was several years since I programmed in pascal so I could be wrong).
If none of the above works, then you might try to put it in a global variable. Even if global variables is bad, it is sometimes the least bad thing to do.