본문 바로가기

//ERDDAP/com.cohort.util/ScriptString2/genEFormat6

genEFormat6

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

This returns the number formatted with up to 6 digits to the left and right of the decimal and trailing decimal 0's removed. If abs(d) <0.0999995 or abs(d) >= 999999.9999995, the number is displayed in scientific notation (e.g., 8.954321E-5). Thus the maximum length should be 14 characters (-123456.123456). 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