Precision
#9
Welcome to the forums.

You can't have an astronomer nor anybody else decide for you.

Now you presented some code, you'll have to declare all those variables "AS DOUBLE" and see if the results are satisfactory. If the code stands just as it is, the variables will be type "SINGLE" which is lesser precision than "DOUBLE".

Using type sigils is a bad habit taught to new programmers of BASIC. Learn to use "DIM" to declare variables so there is no confusion what type it is. Yes the sigil helps to describe what type straight away but what if other "simple" types come around in the future? How to decorate an UDT variable? So with this program try to put "#" right after each word which is more time consuming than a single "DIM" line. But it's only my opinion.

Another bad habit which is a shortcut, is to place "_DEFINE A-Z AS DOUBLE" as the first line of this code that was presented.
Reply


Messages In This Thread
Precision - by Chris - 11-22-2022, 08:43 PM
RE: Precision - by SMcNeill - 11-22-2022, 09:12 PM
RE: Precision - by mnrvovrfc - 11-22-2022, 09:14 PM
RE: Precision - by bplus - 11-22-2022, 09:15 PM
RE: Precision - by mnrvovrfc - 11-22-2022, 09:20 PM
RE: Precision - by Chris - 11-22-2022, 09:26 PM
RE: Precision - by Chris - 11-22-2022, 09:33 PM
RE: Precision - by Chris - 11-22-2022, 09:37 PM
RE: Precision - by Chris - 11-22-2022, 09:40 PM
RE: Precision - by mnrvovrfc - 11-22-2022, 09:41 PM
RE: Precision - by Kernelpanic - 11-23-2022, 12:58 AM
RE: Precision - by Chris - 11-23-2022, 04:22 PM
RE: Precision - by bplus - 11-23-2022, 04:30 PM
RE: Precision - by Chris - 11-23-2022, 05:28 PM
RE: Precision - by Kernelpanic - 11-23-2022, 07:45 PM
RE: Precision - by mnrvovrfc - 11-23-2022, 07:55 PM
RE: Precision - by Jack - 11-24-2022, 02:44 PM
RE: Precision - by Chris - 11-24-2022, 07:06 PM
RE: Precision - by Kernelpanic - 11-24-2022, 11:59 PM
RE: Precision - by Chris - 11-27-2022, 07:01 PM
RE: Precision - by Kernelpanic - 11-27-2022, 09:08 PM
RE: Precision - by Kernelpanic - 11-29-2022, 11:28 PM
RE: Precision - by bplus - 11-22-2022, 08:54 PM
RE: Precision - by Pete - 11-22-2022, 08:59 PM
Precision - by Chris - 11-22-2022, 09:00 PM
RE: Precision - by Chris - 11-22-2022, 09:04 PM
RE: Precision - by SMcNeill - 11-22-2022, 09:10 PM
RE: Precision - by Chris - 11-22-2022, 09:08 PM
RE: Precision - by Pete - 11-22-2022, 09:25 PM
RE: Precision - by bplus - 11-22-2022, 09:26 PM
RE: Precision - by bplus - 11-22-2022, 10:42 PM



Users browsing this thread: 13 Guest(s)