Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a radix in integer class in dart programming?

I am learning dart programming language for Flutter. In the integer class what does the word radix means ? Please explain me this. Thanks

like image 328
ironmanAJ Avatar asked Oct 26 '25 15:10

ironmanAJ


1 Answers

Sometimes we have to work with string in radix number format. Dart int parse() method also supports convert string into a number with radix in the range 2..36:

For example, we convert a Hex string into int:

var n_16 = int.parse('FF', radix: 16);

The output of the code = 255

like image 168
Tunahan Akdogan Avatar answered Oct 29 '25 06:10

Tunahan Akdogan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!