Domino Code Fragment

Code Name*
DecimalSep, CurrencyDigits, isCurrencyZero, and ThousandsSep properties
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.149.213.97
Description*
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).
Type*
Java
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
import lotus.notes.*;


public class decimalsepagent extends AgentBase
{
 public void NotesMain()
   {
   try
     {
       Session s = getSession();
       International inat = s.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();
     }
   }
}