+ 14

Qus10:-What is the difference between abs() and fabs() functions?

#basicquestions,

13th May 2019, 7:45 AM
Deepika Mourya
Deepika Mourya - avatar
9 odpowiedzi
+ 11
👍
14th May 2019, 7:01 AM
Deepika Mourya
Deepika Mourya - avatar
+ 10
fabs is for floating point values.
13th May 2019, 8:04 AM
Sonic
Sonic - avatar
+ 3
abs is absolute value
13th May 2019, 5:18 PM
Rajesh K
Rajesh K - avatar
+ 3
abs is absolute value if number is negative it makes it positive and used for integer number fabs like it i think used for float numbers
13th May 2019, 6:46 PM
Samah Ali
Samah Ali - avatar
+ 3
Hi if you have a float number, you have to use fabs() if you have an integer number, you have to use abs() exemple with fabs() : fabs(239.14) return 239.14 fabs(-239.14) return 239.14 exemple with abs() : abs(239) return 239 abs(-239) return 239
14th May 2019, 8:39 AM
kss
+ 2
Cuál es ahí?
13th May 2019, 8:31 PM
Jhonnier Salas
Jhonnier Salas - avatar
+ 2
Both are used to get the absolute value. Abc is used to get the integer value and fabs os used to get the floating type data..
14th May 2019, 5:50 PM
janmey Solanki
janmey Solanki - avatar
+ 2
مرحبابكى
14th May 2019, 9:56 PM
بدرلدين بن تومى
بدرلدين بن تومى - avatar
+ 1
مرحبابكى
13th May 2019, 11:40 PM
بدرلدين بن تومى
بدرلدين بن تومى - avatar