// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class FPFun {
    public static void main(String[] args) {
        float a = 12345;
        float b = 123;
        float c = (a - b) * (a - b);
        System.out.printf("%10.1f\n", c);
        float d = a * a - 2 * a * b + b * b;
        System.out.printf("%10.1f\n",d);
    }
}
