VOOZH about

URL: https://www.geeksforgeeks.org/perl/perl-mathbigint-from_bin-method/

⇱ Perl | Math::BigInt->from_bin() method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Perl | Math::BigInt->from_bin() method

Last Updated : 9 Jun, 2021

Math::BigInt module in Perl provides objects that represent integers with arbitrary precision and overloaded arithmetical operators.
from_bin() method of Math::BigInt module is used to convert the binary number passed as input to its corresponding decimal number.
 

Syntax: Math::BigInt->from_bin()
Parameter: input binary number to be converted
Returns: a corresponding decimal number of the passed binary number


Example 1: 
 


Output: 
52
200

 

Example 2: 
 


Output: 
-52
-200

 
Comment
Article Tags:

Explore