Scientific numbering.  [SOLVED]

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
palikem
Experienced Solver
Experienced Solver
Posts: 69
Joined: Sat Oct 28, 2017 9:33 am
Location: Slovensko

Scientific numbering.

Postby palikem » Tue Mar 13, 2018 12:37 am

Hi everybody.

It is possible to prohibit scientific numbering.

frame.jpg


Why it can not be there 0.00001
The program does this automatically

Win 8.1
wxDev-C++ 7.4.2.569

User avatar
doublemax
Moderator
Moderator
Posts: 12321
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Scientific numbering.  [SOLVED]

Postby doublemax » Tue Mar 13, 2018 6:29 am

Assuming that's a wxGrid, try SetColFormatFloat()
http://docs.wxwidgets.org/trunk/classwx ... 4ba58e2aa4
Use the source, Luke!

palikem
Experienced Solver
Experienced Solver
Posts: 69
Joined: Sat Oct 28, 2017 9:33 am
Location: Slovensko

Re: Scientific numbering.

Postby palikem » Tue Mar 13, 2018 7:56 am

I was thinking in the whole program

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 2468
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Scientific numbering.

Postby ONEEYEMAN » Tue Mar 13, 2018 2:39 pm

Hi,
Different control can have different formatting set up. It is unfortunately a native control situation.
Do you have an example of such behaviour?
You can try wxString::Format() or wxString::Printf() (check the docs for proper call). And for wxGrid use doublemax' suggestion.

Thank you.


Return to “C++ Development”

Who is online

Users browsing this forum: No registered users and 13 guests