Μετάβαση στο κύριο περιεχόμενο

//ERDDAP/com.cohort.util/ScriptString2/genEFormat10

genEFormat10

[JVM]
open fun genEFormat10(d: Double): String

This returns the number formatted with up to 10 digits to the left and right of the decimal and trailing decimal 0's removed. If abs(d) <0.09999999995 or abs(d) >= 999999.99999999995, the number is displayed in scientific notation (e.g., 8.9544680321E-5). Thus the maximum length should be 18 characters (-123456.1234567898). 0 returns "0" NaN returns "NaN". Double.POSITIVE_INFINITY returns "Infinity". Double.NEGATIVE_INFINITY returns "-Infinity".

Return

the number converted to a string

Parameters

JVM

da number