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".
e.g
#include <iostream>
using namespace std;
int main()
{
float b;
b = 4.34534;
.I wanted to truncate b to "4".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.