JSTL Java Tutorial

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

  
    Format Number
  
  
    
      
        
          
                Formatting
          
        

        
          Enter a number to be formatted:
          
            
          
        

        
          
            
              
              
            


          
        

      

      

 


    
    
      
        
          
        

        
          type="number"
          
            
          
        

        
          
          
        
        
          
          
        
        
          
          
        
        
          
          
        
        
          
          
        
      
type="number" maxIntegerDigits="3"
                        value="${param.num}" />
          
type="number" minIntegerDigits="10"
                        value="${param.num}" />
          
type="number" maxFractionDigits="3"
                        value="${param.num}" />
          
type="number" minFractionDigits="10"
                        value="${param.num}" />
          
type="number" maxFractionDigits="3"
          groupingUsed="false"

                        groupingUsed="false" value="${param.num}" />