hi a need to write a code in c++ given from my profesor ,to input decimal number and the output to be number in Scientific notation with 32 bits can somebody help me pls!!
this seems easy enough: #include "stdafx.h" #include <math.h> int _tmain(int argc, _TCHAR* argv[]) { double value = 1235; double exponent = floor(log(value) / 2.30258509299404568402); double mantissa = value / pow(10, exponent); return 0; } PHP: