Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.6.3 (changelog, source)

Predicate parseOctalInt

Gets the integer value of octal when interpreted as octal. octal must be a valid octal string containing only the digits 0-7. For values greater than 17777777777 (2^31-1, the maximum value that int can represent), there is no result.

"0"        => 0
"77"       => 63
"76543210" => 16434824

Import path

import codeql.util.Numbers
int parseOctalInt(string octal)