1Prelude.intBase(3kaya)       Kaya module reference      Prelude.intBase(3kaya)
2
3
4

NAME

6       Prelude::intBase - Convert a string, in the given base, to an integer
7

SYNOPSIS

9       Int intBase( String str, Int base )
10

ARGUMENTS

12       str The string to convert
13
14       base The base the string is in (2-36 inclusive)
15

DESCRIPTION

17       Convert a string, in the given base, to an integer.
18
19
20    str = "101";
21    bin = intBase(str,2); // 5
22    oct = intBase(str,8); // 65
23    dec = intBase(str,10); // 101
24    hex = intBase(str,16); // 257
25

AUTHORS

27       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
28       (kaya@kayalang.org). For further information see http://kayalang.org/
29

LICENSE

31       The Kaya standard library is free software;  you  can  redistribute  it
32       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
33       License (version 2.1 or any later version) as  published  by  the  Free
34       Software Foundation.
35
37       Prelude.stringBase (3kaya)
38
39
40
41Kaya                             December 2010          Prelude.intBase(3kaya)
Impressum