view Dart vs C++ in advance
void main() {
print(num.parse('12'));
print(num.parse('10.91'));
}
num.isinfinite
|
num.sign
|
Returns minus one, zero or plus one depending on the sign and numerical value of the number.
|
|
Number.abs()
|
Number.ceil()
|
|
Number.compareTo(x)
|
0 if the values are equal. 1 if the current number object is greater than the specified numeric value.-1 if the current number object is lesser than the specified numeric value.
|
|
Number.floor()
|
Number.remainder(x)
|
|
Number.round()
|
Number.toDouble()
|
|
Number.toInt()
|
Number.toString()
|
|
Number.truncate()
|
Returns an int without decimal points.
|
void main() {
int n = 5000;
print(n.hashCode);
}
syntax : num.hashcode
|
num.isNan
|
True if the number is the double Not-a-Number value; otherwise, false.
|
|
num.iseven
|
Returns true if the number is an even number.
|
num.isFinite
|
num.isNegative
|
This property returns a Boolean value true if the number is a negative number.
|
|
num.isodd
|
Returns true if the number is an odd number.
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.