Results 1 to 6 of 6

What is numeric promotion?

This is a discussion on What is numeric promotion? within the Scripts & Content Management forums, part of the Web Designing & Development category; Numeric promotion is a conversion of numeric type of smaller to a larger numeric type,so that integer and floating-point operations ...

  1. #1
    Senior Member chinmay.sahoo's Avatar
    Join Date
    Dec 2013
    Location
    Banglore
    Posts
    265

    Thumbs up What is numeric promotion?

    Numeric promotion is a conversion of numeric type of smaller to a larger numeric type,so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long values, if necessary. The long and float values are converted to double values, as required.

  2. #2
    Senior Member Thoughtgrid's Avatar
    Join Date
    Jul 2016
    Location
    Bangalore HSR layout 1 sector
    Posts
    137

    Default Re: What is numeric promotion?

    It is applied to operands of an arithmetic operator this context allow the use of an identity conversion it is used to convert operands of the numeric operator to the common type it have two types unary numeric operation,binary numeric operation.

  3. #3
    Member
    Join Date
    Jul 2017
    Posts
    51

    Default Re: What is numeric promotion?

    Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values.

  4. #4
    Senior Member
    Join Date
    May 2017
    Posts
    477

    Default Re: What is numeric promotion?

    Numeric promotion also known as Implicit casting or java automatic conversions where conversion of a smaller numeric type value to a larger numeric type automatically, so that integer and floating-point operations may take place.

  5. #5
    Senior Member Ashley234's Avatar
    Join Date
    May 2017
    Posts
    203

    Default Re: What is numeric promotion?

    Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to into values.

  6. #6
    Member
    Join Date
    Sep 2017
    Posts
    53

    Default Re: What is numeric promotion?

    Very well described. Thanks For Your Information.

Tags for this Thread