Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

formatted output in field

Return to the EJS Modeling forum
Login to post to this thread

Problems understanding Format - Sep 6, 2012 at 4:12AM
Ivo Gienal
9 Posts

I want to display in an output field a number, who can change between say 0 an 100 during the simulation. The output should be in the form 24.568. How should the format entry look? If I leave it blank, the display, after the simulation is paused, is 4.856. When I resize the Window, then the display shows 24.856. The same when I use format 0.000.

Current Replies - View all
Re: Problems understandin...   (Francisco Esquembre - Sep 6, 2012 at 4:43AM)
scientific notation - Apr 10, 2012 at 3:03PM
David Joiner
4 Posts

Is it possible to have a Field in EJS display results in scientific notation?

Current Replies - View all
Re: scientific notation   (Francisco Esquembre - Apr 10, 2012 at 3:57PM)
The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics