Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oracle exp function numeric overflow error

I'm trying to do something like this in Oracle:

   select exp(300) from dual

And I get numeric overflow error, how can I make exponential from 300 or bigger number, because I have no idea.

Thanks.

like image 315
Alienware Avatar asked Sep 13 '26 01:09

Alienware


1 Answers

exp(300) is 1.942426e+130, which is greater than the range of Oracle's NUMBER datatype - the biggest number you can have in Oracle is: 9.99...9 x 10125 with up to 38 significant digits.

So in short, no, you won't be able to calculate exp(300) in Oracle.

like image 165
Boneist Avatar answered Sep 15 '26 13:09

Boneist



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!