Class Longs

java.lang.Object
org.zkoss.lang.Longs

public class Longs extends Object
Long relevant utilities.
Author:
tomyeh
  • Field Details

    • ZERO

      public static final Long ZERO
      The zero.
  • Constructor Details

    • Longs

      public Longs()
  • Method Details

    • toStringByScale

      public static final String toStringByScale(long val, int digits)
      urns a String object representing the specified integer, with the (at-least) specified digits.

      Example: toStringByScale(123, 5) returns "00123", toStringByScale(123, 2) returns "123".