2 / 2 / 0
Регистрация: 12.04.2017
Сообщений: 99
|
||||||
1 | ||||||
Как правильно округлить дробные числа?13.11.2017, 19:22. Показов 567. Ответов 2
Метки нет (Все метки)
Здравствуйте, уважаемые читатели, данной темы.
У меня возникла проблема с вот этим:
||=== Build: Debug in Задача №1 (compiler: GNU GCC Compiler) ===| 1\main.cpp||In function 'int main()':| 1\main.cpp|14|error: invalid operands of types 'double' and 'int' to binary 'operator%'| 1\main.cpp|15|error: invalid operands of types 'double' and 'int' to binary 'operator%'| 1\main.cpp|16|error: invalid operands of types 'double' and 'int' to binary 'operator%'| 1\main.cpp|17|error: invalid operands of types 'double' and 'int' to binary 'operator%'| 1\main.cpp|19|warning: right operand of comma operator has no effect [-Wunused-value]| 1\main.cpp|19|warning: right operand of comma operator has no effect [-Wunused-value]| 1\main.cpp|19|warning: right operand of comma operator has no effect [-Wunused-value]| 1\main.cpp|19|warning: right operand of comma operator has no effect [-Wunused-value]| 1\main.cpp|19|warning: right operand of comma operator has no effect [-Wunused-value]| 1\main.cpp|19|warning: right operand of comma operator has no effect [-Wunused-value]| 1\main.cpp|19|error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'| 1\main.cpp|7|warning: unused variable 'number' [-Wunused-variable]| ||=== Build failed: 5 error(s), 7 warning(s) (0 minute(s), 0 second(s)) ===|
0
|
13.11.2017, 19:22 | |
Ответы с готовыми решениями:
2
Задача на выделение памяти. В массиве c(16) все целые элементы разделить на 3, а дробные округлить Как правильно округлить? Как кодираются дробные числа в пакетах? Подскажите как считать дробные числа (например 4/5) из файла |
5871 / 4748 / 2940
Регистрация: 20.04.2015
Сообщений: 8,361
|
||||||
13.11.2017, 19:29 | 2 | |||||
1
|
2 / 2 / 0
Регистрация: 12.04.2017
Сообщений: 99
|
|
13.11.2017, 19:35 [ТС] | 3 |
Спасибо большое за помощь!!!
0
|
13.11.2017, 19:35 | |
13.11.2017, 19:35 | |
Помогаю со студенческими работами здесь
3
Как округлить дробные числа до второго знака Округлить дробные цифры В матрице дробные элементы округлить, а целые заменить их модулями Цикл: В ячейки Excel записываются целые числа. Как исправить, чтобы числа были дробные? Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |