Limitation of function EXP()
#8
(02-22-2023, 12:22 PM)Jack Wrote: @BSpinoza
I think that the Exp function in QB64 supports _Float, but remember that print only supports double
you may be able to do your calculation using _Float

I was wrong, QB64 exp function treats _Float as double, however you can use the C function expl
Code: (Select All)
Declare CustomType Library
    Function expl## (ByVal x As _Float)
End Declare

Dim As _Float x, y
x = 11354##
y = expl(x)
Print y
<< edit >>
forgot that the print statement does not support _Float, (it does in my modified version)
nevertheless, if the end result is within range of double you can use expl
Reply


Messages In This Thread
Limitation of function EXP() - by BSpinoza - 02-22-2023, 11:26 AM
RE: Limitation of function EXP() - by mnrvovrfc - 02-22-2023, 11:59 AM
RE: Limitation of function EXP() - by Jack - 02-22-2023, 12:22 PM
RE: Limitation of function EXP() - by Jack - 02-22-2023, 07:49 PM
RE: Limitation of function EXP() - by Sprezzo - 02-22-2023, 02:51 PM
RE: Limitation of function EXP() - by Kernelpanic - 02-22-2023, 06:25 PM
RE: Limitation of function EXP() - by SMcNeill - 02-22-2023, 06:27 PM
RE: Limitation of function EXP() - by Kernelpanic - 02-22-2023, 06:48 PM
RE: Limitation of function EXP() - by BSpinoza - 02-23-2023, 04:44 AM
RE: Limitation of function EXP() - by Jack - 02-23-2023, 10:27 AM
RE: Limitation of function EXP() - by RhoSigma - 02-23-2023, 11:46 AM
RE: Limitation of function EXP() - by Jack - 02-23-2023, 02:57 PM
RE: Limitation of function EXP() - by jcm - 02-23-2023, 03:08 PM
RE: Limitation of function EXP() - by RhoSigma - 02-23-2023, 06:02 PM



Users browsing this thread: 5 Guest(s)