Mega Code Archive

 
Categories / Java Tutorial / JSTL
 

Format Number for Percent Max Fraction Digits

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %> <html>   <head>     <title>Format Number</title>   </head>   <body>    <fmt:formatNumber type="percent" maxFractionDigits="3"             value="123123.123123" />   </body> </html>