Posted: Tue Apr 01, 2014 9:34 am Post subject: 2077 single bug
In 2077 all the single code was moved from various libs (mcs.lib, single.lib and fp_trig.lib) into one lib : fp_trig.lib. the single.lib only servers as an overload str() function in scientific format.
But unfortunately, there were some double routines and they were moved to the top and the compiler uses the first instance. This caused _fcmp (floating point compare) to fail. And since _fcmp is used by many FP routines, it causes wrong results everywhere.
Using the update wiz you can update 2077, it will update the libs (and some dat files). you do not need to update the compiler or IDE. but since the package date changes, the wiz want to update everything.
So the only files you need is the LIB package. Of course you can also do a full install.
(BASCOM-AVR version : 2.0.7.7 ) _________________ Mark
Joined: 07 Aug 2006 Posts: 23 Location: center italy
Posted: Tue May 06, 2014 9:52 pm Post subject:
hello Mark
now i use more fp variables
and i notate that if convert big numbers (>100Mill) from dword variables to fp variables and vice versa the error during conversion it's too big
as shown by the example that running on simulator
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum