in Technology by

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

1 Answer

0 votes
by
Both functions are to retrieve absolute value. abs() is for integer values and fabs() is for floating type numbers. Prototype for abs() is under the library file < stdlib.h > and fabs() is under < math.h >.

Related questions

0 votes
    What is the difference between process.nextTick and setImmediate functions?...
asked Jan 25, 2021 in Technology by JackTerrance
0 votes
    What is the difference between readFile and createReadStream functions in Node.js?...
asked Jan 25, 2021 in Technology by JackTerrance
0 votes
    Cloud Functions and Firebase Functions (or "Cloud Functions for Firebase") both look the same. Please describe the ... between these? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it ... xrange(0, 20): Select the correct answer from above options...
asked Jan 27, 2022 in Education by JackTerrance
0 votes
    What are the differences between t.test() and t.data.frame()? When do you use these two functions?...
asked Oct 16, 2020 in Technology by JackTerrance
0 votes
    In simpler words differentiate between SVN Commit & SVN Update functions?...
asked Feb 21, 2021 in Technology by JackTerrance
0 votes
    Differentiate between ordinary function and member functions in c++. Explain with an example Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    I've spent the past few hours reading around in here and elsewhere, as well as experimenting, but I ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 19, 2022 in Education by JackTerrance
0 votes
    I am setting up a VBA userform function for my work that shows available quantities left to order based on ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 20, 2022 in Education by JackTerrance
0 votes
    What are the difference between Task and Thread in .NET?...
asked Feb 16, 2023 in Technology by JackTerrance
0 votes
    What's the difference between SDK and Runtime in .NET Core?...
asked Feb 16, 2023 in Technology by JackTerrance
0 votes
    What is the difference between .NET Core and Mono?...
asked Feb 16, 2023 in Technology by JackTerrance
0 votes
    The main difference between SNMPv3 and SNMPv2 is _______. A. Enhanced security B. Integration C. Management D. Integration...
asked Feb 14, 2023 in Technology by JackTerrance
0 votes
    What is the difference between an abstract class and an interface?...
asked Feb 9, 2023 in Technology by JackTerrance
0 votes
    What is the difference between a constructor and a method?...
asked Feb 9, 2023 in Technology by JackTerrance
...