wiki: Comet32 Numbers_may_include_up_to_64_digits.3B_32_integer_and_32_fractiona


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on September 29, 2011 at 07:48:39: Uploaded files: 2

Was fooling around with NUM( ) and large numbers...

Wiki claims we can have numbers up to 64 digits...

The NUM( ) Function returns 40.8 (32 integer + 8 decimals). Problem with the sign, which I think has been fixed in a more recent version (I'm at 443)

Well, yes, we can declare 64.0 or 64.32 and the Compiler will accept.

What the compiler does not accept, are numbers more than 34 digits long (including decimal and or sign).

I wrote a program with a 64.32 variable and tried to fill it with a 64.32 number (32 digits on each side of the decimal) and it would not even compile.

I declared a 64.0, it compiles but I keep getting runtime errors...

I throttled down to 32.0 and now it does not crash anymore. I still cannot assign an "constant" number using more than 34 characters. The compiler's smart should check for declaratives where NoOfPositions is no more than NoOfDecimals plus 32 and no less than NoOfDecimals.

So, our great 64 digits are 32 integers and 32 decimals.

Attached is my test program with screen output.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]