Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #54.9K
I am trying to find the sum of integers ( (int)(a*i)/b ) where i is from 0 to 10^10. The problem is a/b >=1 and can be a fraction also and a and b are constant If it wasnt a fraction then it was really easy i*(i+1)/2 * a/b Any … |
|
Hello all, This is my first post in thins forum and I hope a newbie like me makes some sense with my questions. I have a floating value float f = 5.3606; and I output a value cout<<pow(f,n); when n goes above 6, the representation of the floating number changes … |