Dart Programming – remainder Method

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
dart programming remainder method

In this guide, we will discuss remainder Method in Dart Programming Language. It returns the truncated remainder after dividing the two numbers.

Syntax

Number.remainder(x)

Parameter

  • x − represents a divisor

Return Value

Returns the remainder of a division.

Example

void main() { 
   var a = 10; 
   var b = 17; 
   
   print(a.remainder(2)); 
   print(b.remainder(2)); 
}

It will produce the following output −.

0 
1

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply