Scientific numbering. Topic is 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.
Post Reply
palikem
Experienced Solver
Experienced Solver
Posts: 69
Joined: Sat Oct 28, 2017 9:33 am
Location: Slovensko

Scientific numbering.

Post by palikem »

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: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Scientific numbering.

Post by doublemax »

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.

Post by palikem »

I was thinking in the whole program
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Scientific numbering.

Post by ONEEYEMAN »

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.
Post Reply