Link to home
Start Free TrialLog in
Avatar of chataholic4real
chataholic4real

asked on

truncating a decimal no. in C++

I wanted to truncate a decimal no in c++
e.g
   
  #include <iostream>
  using namespace std;

 int main()
   {
     float b;
     b = 4.34534;
.I wanted to truncate b to "4".
ASKER CERTIFIED SOLUTION
Avatar of Member_2_1001466
Member_2_1001466

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial