anchor.diff:                  %>                
                   <tr>
                       <td><%=i%></td>
  -                    <td><%=dev%></td>
  -                    <td><%=prest%></td>
  -                    <td><%=juros%></td>
  -                    <td><%=amorti%></td>
  +                    <td><%= decimal.format(dev) %></td>
  +                    <td><%= decimal.format(prest)%></td>
  +                    <td><%= decimal.format(juros)%></td>
  +                    <td><%= decimal.format(amorti)%></td>
                   </tr>
                   <%}%>
               </table><%}%>
  
positive.code: 
  <%@page contentType="text/html" pageEncoding="UTF-8"%>
  <!DOCTYPE html>
  <html>
  
negative.code:             double amorti = 0;
              double prest = 0;
              int meses = 0;
              DecimalFormat decimal = new DecimalFormat("#0.00");
              
              try{cap = Double.parseDouble(request.getParameter("capi"));}    //try para pegar valores dos inputs
              catch(Exception e){}
  