The Open Source Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

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 post and replies

Return to the formatted output in field thread
Login to post to this thread

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?


Replies to scientific notation

Re: scientific notation - Apr 10 2012 3:57PM
Francisco Esquembre
207 Posts

Sure!

Use, for instance, "0.##E0" as Format property of a number field.

Paco



The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics