APS Excellence in Physics Education Award
November 2019

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
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 - )
scientific notation
David Joiner
5 Posts

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


Current Replies - View all
Re: scientific notation   (Francisco Esquembre - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book