TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sascha B
NA
237
0
Math.Pow can't handle fractions ?
Mar 22 2011 6:23 AM
Hello,
I saw this problem today.
I used to calculate this: varX = Math.Pow(varx, 1/3);
Everytime I get only an integer that is completly wrong!
But if I use this: varX = Math.Pow(varx, 0.333333);
Then the result is allright...
What is wrong with this function?
I can't express 1/3 as a double number cause it's endless.
Please help me...
Reply
Answers (
5
)
What is a good non-networked example of the new C# async feature?
Convert text file to sql server compact database (.sdf)