Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

fabs in c++ example

#include<iostream>
#include<cmath>
using namespace std;

int main(){
    //fabs() is the short form of float absolute.
  	//By this function you can change a negative floating point number
  	//to positive.

    float num = -10.6;
    cout<<fabs(num)<<endl;

    return 0;
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #fabs
ADD COMMENT
Topic
Name
5+3 =