Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged rounding

0 votes
531 views
1 answer
    I would need to have a float variable rounded to 2 significant digits and store the result into a new ... extreme precision in this case. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
444 views
1 answer
    I need to round decimal numbers to six places using JavaScript, but I need to consider legacy browsers so I ... a prototype to older browsers? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
587 views
1 answer
    What is the difference between Math.rint() and Math.round()? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
759 views
1 answer
    I'm having trouble with rounding. Specifically, after reading all the javadoc, I was expecting the following code: ... Am I missing something? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
585 views
1 answer
    For instance I have the following value: 0.000018 This is 6 decimal places, but I want to round it up the ... a simple way of doing this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
737 views
1 answer
    I am trying to understand how to round to the nearest tenths position with C#. For instance, I have a value that ... position in C#? Thank you! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
649 views
1 answer
    I want to round up always in c#, so for example, from 6.88 to 7, from 1.02 to 2, etc. How can I do that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
539 views
1 answer
    I want to convert all numbers to the nearest .25 So... 5 becomes 5.00 2.25 becomes 2.25 4 becomes 4.00 3.5 becomes 3.50 Thanks See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
666 views
1 answer
    Is there any way to round numbers in C? I do not want to use ceil and floor. Is there any other alternative? I ... 4 even when float num =4.9. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
644 views
1 answer
    I need to round a number to nearest multiple of 5 (either up or down). For example, here are the list of ... 7 80 Numbers will only be positive. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
625 views
1 answer
    How can I round up a CGFloat in Swift? I've tried ceil(CDouble(myCGFloat)) but that only works on iPad Air & ... is not a subtype of 'CGFloat' See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
873 views
1 answer
    How can I do the following rounding in python: Round to the nearest 0.05 decimal 7,97 -> 7,95 6,72 -> 6,70 ... ,25 -> 5,25 Hope it makes sense. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
520 views
1 answer
    Is there any in built function in java to tell me how many decimal places in a double. For example: 101.13 ... to bigdecimal first with no luck. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
588 views
1 answer
    I need to round down and it should be two decimal places. Tried the following, a = 28.266 print round(a, 2 ... the expected value is 28.26 only. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...