| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Wed Mar 03, 2004 11:48 pm Post subject: Floating-Point functions used without OPTIONAL DECIMALSEP |
|
|
I checked by searching @F and don't seem to have any Floating-Point Functions but keep getting the ERROR.
Is there a illegal charactor I'm using in the INFO MENU or MSGBOX, etc ?
Please help, guess I'll be a newbie for awhile, lol |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Mar 03, 2004 11:52 pm Post subject: |
|
|
Can you expand more on your question please? I'm not sure exactly what
you mean. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Mar 04, 2004 12:00 am Post subject: |
|
|
I can't build the EXE because of that ERROR:
Warning! Floating-Point functions used without OPTIONAL DECIMALSEP
heres an EXAMPLE of what I have and tried to adjust somewhat:
Is any of the below formating wrong or illegal perhaps?
| Code: | | IF @EQUAL(@MSGBOX(@CR()@FILL(7,,L)These are the files that will be created".""." Continue"?"@CR()Copies will be created"," Modified and or Renamed if needed.@CR()@FILL(8,,L)Any original files will be protected or backed up"."@CR()@CR()@CR()%e@CR()%%pp@CR()%%ll@CR()@CR()@CR()-----------------------------------------@CR()NOTES":"@CR()V1 V2 V3 file pre"-"extensions are normal"," they identify@CR()your new map file types "("applies to "."EDS and "."PCX files")""."@CR()C1 C2 C3 is same as V1 V2 V3 "("both mean same thing")""."@CR()C1","V1 "=" Arizona@FILL(4,,L)C2","V2 "=" Urban@FILL(4,,L)C3","V3 "=" Mountain"."@CR()@CR()-----------------------------------------,File Name and editing Confirmation"!",$001),2) |
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 04, 2004 12:04 am Post subject: |
|
|
It looks like a decimal separator is required for using floating-point functions,
especially since they involve using decimal points.
Try using OPTION DECIMALSEP,<separator> at the top of your code.
EDIT: Strange, I did notice your code doesn't have any floating-point operations
in it.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Mar 04, 2004 12:12 am Post subject: |
|
|
well my actual code has about 3400 lines, that was just 1 line that I worked on to try to make the error go away.
But I didn't use any Floating-Point math etc..
typing OPTION DECIMALSEP,<separator> just as you see it?
and will that mess anything up? I do have regular non-floating math lines in the 3400 lines.
Its wierd, I had the ERROR few times before while working on the program. But mysteroiuslly goes away when I'm adjusting " " things, so I thought it might be my formating of MSGBOX or INFOs. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 04, 2004 12:16 am Post subject: |
|
|
You should add in place of <separator> the decimal separator you are
comfortable working with and you have used in your code. Most European
countries use a comma "," as their decimal separator while American
countries use a period "." as their decimal separator.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Mar 04, 2004 12:20 am Post subject: |
|
|
So I should try:
OPTION DECIMALSEP "."
Will that make my normal math mess up or MSGBOX INFO problems? |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 04, 2004 12:23 am Post subject: |
|
|
It shouldn't change anything with regular math or info boxes - and you
can always go back and erase that line of code if it stops anything from
working.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Mar 04, 2004 12:27 am Post subject: |
|
|
ok I tried it and it just went in a loop, never loaded (stays at Evloop)
OPTION DECIMALSEP,"."
hmm.. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 04, 2004 12:38 am Post subject: |
|
|
Are you sure you haven't used something like the following in your code
that could be causing problems?
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Mar 04, 2004 12:39 am Post subject: |
|
|
Sorry, I found what it was, I added a triple IF with a needed END.
and had the program running process invisible prolly because of the IF with no END whammy or something.
But I added the OPTION DECIMALSEP,"." line to get rid of the Floating-Point ERROR also, thanks for all the help buddy..
 |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Mar 04, 2004 9:08 am Post subject: |
|
|
The decimal separator message is only a warning, it doesn't stop the EXE being compiled. It does appear if certain functions that can take decimal values as arguments like @datetime() are used. It doesn't warn you if you use something like wait event,0.2 however. So I still release programs and then get users in Germany and so on complaining of runtime errors. Grrrr! _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|