Jump to content

How to prevent showing in xe+x? (Scientific notatio)

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Hamed

Hamed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 276 posts
I want to prevent showing my numbers in xex look
1e+101 or 1.111e101
I use cout to print my output.
Attached File  as..gif   927bytes   40 downloads

#2
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
This is scientific notation and you want fixed one. Use fixed manipulator from iomanip library. You can also set precision with setprecision(n) function.

Manipulators - cplusplus.com
A conclusion is where you got tired of thinking.
#define class struct    // All is public.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users