Im tryna get my code (as seen bellow) to print both the variable "jax" with two decimal places, and the full value opf the variable "jax"
so the out put should be:
8712.65
8712.654
How do i do this?
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double jax=8712.654;
//first output
cout<<setprecision(2)<<fixed;
cout<<jax<<endl<<endl;
//second output
cout<<jax<<endl<<endl;
system("pause");
}