rounding tag

7 questions


1 answers
141 views
0
When rounding to n decimal places in Java,

When you use String's format, you always round it up if it's more than 5.String.format(%.5g%n, 0.912385);If this is the case 0.91239It's rounded up well. For example, String.format(%.5g%n, 0.912300);I...


1 answers
105 views
0
How to raise the float

We need a float raise function that runs like the code below math.h has ceil() and floor() but not round().Is it in another C++ library or not at all?float round(float);round(0.1) = 0round(-0.1) = 0ro...


1 answers
93 views
0
I have a question about rounding up Osao. (Python)

I understand that if the last digit is 5 days, the first digit is discarded if it is an even number, and if it is an odd digit, it is raised to an even number.In that picture, I want to know why the f...

1 years ago

1 answers
123 views
0
Why is there no rounding function (rounding x)?

There is a round() function, but why is there no ceil() function? ㅜ??round(2.3)If you do this, you get 2.0, but I want to get 3. int(number + 0.5)I've tried it, but I'm going crazy because it's also l...


1 answers
132 views
0
How to create a round image view on Android

I want to make the image view round on Android, how do I do it?Bitmap circleBitmap = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);BitmapShader shader = new Bitma...

1 years ago

1 answers
114 views
0
c Language Mistake Rounding Questions

Running the code below will automatically round up the last real value. Enter: 4 15 23.6 100.35 0.388#include <stdio.h>int main(void){ int cnt; scanf(%d, &cnt); double arr[cnt]; double hap=...

1 years ago

1 answers
93 views
0
Round function question.

Write a program that takes n natural numbers and outputs a relative size based on the smallest value.ex) 2 3 4 5 5-> 1 2 2 3 3 It has to come out as .What's wrong?#include <stdio.h>#define si...

1 years ago

© 2024 OneMinuteCode. All rights reserved.