Is there any code out there (or a built-in function) which allows outputting a floating point number in engineering notation?
For example, 1.5e-4 would
1.5e-4
To solve this problem, you want to create a class (call it Engineering) which inherits from Float on which you override the ToString() member.
Edit: Okay, I understand the issue now. Still, the solution is subclassing.