03-08-2019, 04:57 PM
Is there a CAS function or something similar to convert a given number to scientific notation?
Obs: I tried changing the number format to scientific but it only converts to X*E^Y if there is a decimal point in X, i.e., it converts 100.0 to 1.0e^2 but not 100, beside the fact that I only want to use this in some specific situations, so a CAS function would be the best solution.
I tried creating this CAS program using Python but (at least with the PC emulator) it crashes when I try to use the function.
Obs: I tried changing the number format to scientific but it only converts to X*E^Y if there is a decimal point in X, i.e., it converts 100.0 to 1.0e^2 but not 100, beside the fact that I only want to use this in some specific situations, so a CAS function would be the best solution.
I tried creating this CAS program using Python but (at least with the PC emulator) it crashes when I try to use the function.
Code:
#cas
def base10(x):
return "{:.2e}".format(x)
#end