Site icon TestingDocs.com

Dart Numbers

Dart Numbers

The num data type is used to represent Dart Numbers. num is an abstract class, we cannot directly instantiate it, but we can use it as a base type for numeric values such as integers and floating-point numbers.

The two main subtypes of num are as follows:

Integer

int: Represents integers, which are whole numbers without a fractional part. Integers can be positive, negative, or zero.

Double

double: Represents floating-point numbers, which are numbers with a fractional part. Floating-point numbers can represent real numbers and have decimal points.

Dart Tutorials

Dart tutorial on this website can be found at:

https://www.testingdocs.com/dart-tutorials-for-beginners/

More information on Dart:

https://dart.dev/

Exit mobile version