java.lang

Class Number

    • Constructor Summary

      Constructors 
      Constructor and Description
      Number() 

        

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      byte byteValue()
      Returns the value of the specified number as a byte.
      abstract double doubleValue()
      Returns the value of the specified number as a double.
      abstract float floatValue()
      Returns the value of the specified number as a float.
      abstract int intValue()
      Returns the value of the specified number as an int.
      abstract long longValue()
      Returns the value of the specified number as a long.
      short shortValue()
      Returns the value of the specified number as a short.

        

    • Constructor Detail

      • Number

        public Number()
    • Method Detail

      • intValue

        public abstract int intValue()
        Returns the value of the specified number as an int. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type int.
      • longValue

        public abstract long longValue()
        Returns the value of the specified number as a long. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type long.
      • floatValue

        public abstract float floatValue()
        Returns the value of the specified number as a float. This may involve rounding.
        Returns:
        the numeric value represented by this object after conversion to type float.
      • doubleValue

        public abstract double doubleValue()
        Returns the value of the specified number as a double. This may involve rounding.
        Returns:
        the numeric value represented by this object after conversion to type double.
      • byteValue

        public byte byteValue()
        Returns the value of the specified number as a byte. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type byte.
        Since:
        JDK1.1
      • shortValue

        public short shortValue()
        Returns the value of the specified number as a short. This may involve rounding or truncation.
        Returns:
        the numeric value represented by this object after conversion to type short.
        Since:
        JDK1.1

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 15/07/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/lang/Number.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, Number

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut