Question: Is it possible to make a Double Float Value in Small and Visual Basic?
I've been trying to create a double float value in Small/Visual Basic (as in BOTH of them)...
And I've always been not having any luck.. I always terminate with an error like so:
at System.Decimal..ctor(Double value)
at System.Decimal.op_Explicit(Double value)
at Microsoft.SmallBasic.Library.Primitive.op_Implicit(Double value)
at _SmallBasicProgram._Main()
Or, running in Visual Basic:
overflow
So, is there any way to make a double non-integral (decimal) precision float?
The code (I've tried) are:
Small Basic:
var1 = 18446744073709551615
var2 = 1797693134862315800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
(Yeah, sorry about the number of zeros.. It's 303 of them.)
and in Visual Basic:
Module experiment_doesDoubleFloat_workModule
Dim var1, var2 As Double
Sub Main()
var1 = 18446744073709551615
var2 = 1797693134862315800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
End Sub
End Module
Am I messing something up?
I also have no idea which tags actually fit this... (Apart from the smallbasic tag)