Java formatted numbers

xiaoxiao2021-03-06  37

<%!

Java.text.Decimalformat format = (java.text.decimalformat) java.text.Decimalformat.getInstance ();

/ / Format the floating point as a string of two decimals

String formatdouble (double f)

{

Format.ApplyPattern ("####. ##");

Return Format.Format (f);

}

%>

转载请注明原文地址:https://www.9cbs.com/read-69910.html

New Post(0)