All Downloads are FREE. Search and download functionalities are using the official Maven repository.

reference.language.divide.html Maven / Gradle / Ivy




    
    Divide expressions
    
    

    
    

    
    

    
    
    
    

    


Divide expressions

Divide expressions are used to divide 2 values.
A divide expression is a code fragment which produces a value, whose type is determined by the values being subtracted, and which can then be used as an input for other operations: print, write, method call and so forth.
A divide expression has the form a / b.
Additionally, Prompto supports integer division, using the form a \ b, and remainder using the form a % b (also known as modulo).

Dividing Integer and Decimal values

Dividing Integer and Decimal values returns a Decimal value.

Integer division of Integer and Decimal values

Integer division of Integer and Decimal values returns an Integer value. The right-hand side must be an Integer.

Remainder of Integer values

Remainder of Integer values returns an Integer value.

Remainder of Decimal values

Remainder of Decimal values returns a Decimal value.

Dividing user defined values

Prompto supports dividing user defined values. See categories for details.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy