on-internet
← Community

Math "pow" in Java and C# return slightly different results?

Stack Overflow ·

I am porting program from C# to java. I've faced a fact that Java Math.pow(0.392156862745098,1./3.) = 0.7319587495200227 C# Math.Pow( 0.392156862745098, 1.0 / 3.0) =0.73195874952002271 this last digit leads to sufficient differences in further calculations. Is there any way to emulate c#'s pow? Thanx

Comments

Sign in or sign up to comment and upvote.

No comments yet.