#include #include int main(int argc, char* argv[]) { std::string num = argv[1]; int a = 0; int b = 0; int c = 0; c = int(num.length() - 1); if (c > 2) { int tmp = int(num[0] - '0') * 100 + int(num[1] - '0') * 10 + int(num[2] - '0'); tmp += 5; if (tmp / 1000 > 0) { a = (tmp / 1000) % 10; b = (tmp / 100) % 10; c += 1; } else { a = (tmp / 100) % 10; b = (tmp / 10) % 10; } } else { if (c == 2) { a = int(num[0] - '0'); b = int(num[1] - '0'); } else { a = int(num[0] - '0'); } } ::printf("%d.%d*10^%d", a, b, c); return 0; }