Class SIPrefixFormatterTest

    • Constructor Detail

      • SIPrefixFormatterTest

        public SIPrefixFormatterTest()
    • Method Detail

      • testDoubleSIPrefixFormatter

        public void testDoubleSIPrefixFormatter()
        Test the double scalar SI Prefix formatter.
      • checks

        public static void checks​(double value)
        Perform all checks using the specified exponent value.
        Parameters:
        value - double; the value
      • checkMass

        public static void checkMass​(double value,
                                     boolean sign)
        Check the formatting for Mass.
        Parameters:
        value - double; the value
        sign - boolean; if true; invert the value
      • checkEnergy

        public static void checkEnergy​(double value,
                                       boolean sign)
        Check the formatting for Energy.
        Parameters:
        value - double; the value
        sign - boolean; if true; invert the value
      • checkTemperature

        public static void checkTemperature​(double value,
                                            boolean sign)
        Check the formatting for Temperature.
        Parameters:
        value - double; the value
        sign - boolean; if true; invert the value
      • checkDimensionless

        public static void checkDimensionless​(double value,
                                              boolean sign)
        Check the formatting for DimensionLess.
        Parameters:
        value - double; the value
        sign - boolean; if true; invert the value