VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

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

Last Updated : 9 Jun, 2021

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

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


Example 1: 
 


Output: 
229
291

 

Example 2: 
 


Output: 
-229
-291

 
Comment
Article Tags:

Explore