'Use of real types can result in precision problems'

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-11-16 08:35 PM
2004-11-16
08:35 PM
The line where the warning points to have IF statements like these:
IF B=0 THEN ....
IF anyparameter<>0 THEN...
Despite the warnings, the object seems to work perfectly.
What 'real types' is AC talking about??
23 REPLIES 23

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-12-01 10:14 PM
2004-12-01
10:14 PM
Olivier wrote:None of your examples would trigger the warning.
Let's take this example about text position (old GV's names to make short).
IF (W~ > 90 AND W~ <= 270) THEN ROT2 180 ELSE ROT2 0
Currently, this script works, with some weaks for limt values, and i understand now, why.
Thanks to all the programmers for their explanations.
According to the new rules, i should write, if i understand correctly
eps=0.0001
IF (ABS(W~ -90) > eps AND ABS(W~ -270) <= eps) THEN ROT2 180 ELSE ROT2 0
it does'nt work.
If i write
IF ((W~ -90) > eps AND (W~ -270) <= eps) THEN ROT2 180 ELSE ROT2 0
this statement works perfectly.
By the way, Karl, '>='s and '<='s also do not trigger them.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-07-14 06:20 PM
2005-07-14
06:20 PM
It seems with a recent (2045?) update, actual precision problems have arisen where there were harmless warnings before.
I had several windows suddenly start failing to generate with 'incompatible types of expression' errors in the report. I opened them to check for errors, and the only errors were 'UORTCRIPP's.
I fixed them and the windows were fine. I have been selectively ignoring those warnings, but I'm stopping as of now.
I had several windows suddenly start failing to generate with 'incompatible types of expression' errors in the report. I opened them to check for errors, and the only errors were 'UORTCRIPP's.
I fixed them and the windows were fine. I have been selectively ignoring those warnings, but I'm stopping as of now.
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2005-07-14 09:38 PM
2005-07-14
09:38 PM
Durval wrote:Hi Durval,Olivier wrote:
Let's take this example about text position (old GV's names to make short).
You force me to work on the national day, here, what a pity.



Well, before a "non sleeping night", if i can clarify some points.
Thanks to the help of many contributors on this forum, and specially Oleg's help, i solved most of these problems.
I must admit that for ">= & <=" equalities, sometime i still get some weird results.
With the quoted example, sometime i can't get correct results (for limit values), anything i try. No more with GS examples.
I don't have the truth, so, for such particular situations, i add a parameter allowing the user to correct this manually.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-11-08 05:23 PM
2018-11-08
05:23 PM
I can't believe this is still an issue 14 years later.
Any way to turn off this particular error message yet?
Any way to turn off this particular error message yet?
ArchiCAD 23
Windows 10
Windows 10
- « Previous
- Next »
- « Previous
- Next »