Class LalFormat

java.lang.Object
jline.lang.lal.LalFormat

public final class LalFormat extends Object
Python-compatible formatting helpers used in messages and model signatures.
  • Method Details

    • pyFloat

      public static String pyFloat(double v)
      Python repr(float): shortest round-trip digits, inf/nan.
    • tuple

      public static String tuple(List<?> items)
      Python tuple representation of a list of objects (one-element tuples keep the comma).
    • pyG

      public static String pyG(double v)
      Python format(v, 'g'): six significant digits, trailing zeros removed.