Hi,
I’ve used the Math.log(2)like,
irb(main):001:0> Math.log(2)
=> 0.6931471805599453
When I’m using the scientific calculator to calculate log(2), it
produces the answer as, 0.30102999566398119521373889472449
I’ve realized that Math.log(2) != 0.30102999 of log(2).
Anyhow please assist me to get the value 0.30102999 for log(2) in Ruby
code.
Selvag R. wrote in post #1150023:
Hi,
Anyhow please assist me to get the value 0.30102999 for log(2) in Ruby
code.
irb(main):003:0> Math.log10(2)
=> 0.3010299956639812
Regis d’Aubarede wrote in post #1150088:
Selvag R. wrote in post #1150023:
Hi,
Anyhow please assist me to get the value 0.30102999 for log(2) in Ruby
code.
irb(main):003:0> Math.log10(2)
=> 0.3010299956639812
Thank you for your immediate reply.