JAVA/CORBA CLASSES


Examples: DecimalSep, CurrencyDigits, isCurrencyZero, and ThousandsSep properties
This agent displays the decimal international settings: the number of decimal (fraction) digits; the decimal separator (between the whole and fraction parts); the 1000s separator; and whether a zero precedes the decimal point if the number is a fraction (no whole part).

import lotus.domino.*;
public class JavaAgent extends AgentBase {
 public void NotesMain() {
   try {
     Session session = getSession();
     AgentContext agentContext = session.getAgentContext();
     // (Your code goes here)
     International inat = session.getInternational();
     System.out.println
     ("Number of decimal digits: " +
     inat.getCurrencyDigits());
     System.out.println
     ("Decimal separator: \"" +
     inat.getDecimalSep() + "\"");
     System.out.println
     ("1000s separator: \"" + inat.getThousandsSep() + "\"");
     if (inat.isCurrencyZero())
       System.out.println("Leading zero");
     else
       System.out.println("No leading zero");
   } catch(Exception e) {
     e.printStackTrace();
   }
 }
}

See Also