It is interesting to observe that ancient Indian Mathematicians preferred Devanagari alphabet to numerals in representing large numbers. They used a code language to represent the digits of the numbers. This, they did, not for secrecy but to facilitate memorizing. They encoded numbers in the form of sutras or verses which made them easy to be memorized even for small children.

The shloka "gopi bhaagya ..." which was presented to you in the introductory page of Indian Mathematics is a good example of this encoding. Actually, it bears three different meanings. In one sense it is a hymn in praise of Lord Krishna and  in another sense, it is a hymn towards Lord Shankara. Apart from the literary pun , the verse has mathematical importance. It is because, the verse  encodes 32 digits of the number 'Pi' using a code language. The code language used for representing digits in that shloka is given below

"  kaed n:v: Xaed n:v: p:aed p:Wc:k y:ak " and  " x:H S:ny:m: "

It actually means

                            Nine letters starting from 'ka'      ( k K: g: G: { c: C j: J: )

                            Nine letters  starting from 'Ta'    ( X Y R Z N: t: T: d D: )

                            Five letters starting from 'pa'      ( p: P b: B: m: )

                            Eight letters starting from 'ya'    and     ( y: r l: v: S: \: s: h )

                            KSha   for zero.         ( x:H )

  Elaborated, this means:

    ka,Ta,pa and ya ( k X p: y: ) all denote 1;

    kha, Tha, pha and ra ( K: Y P r )  all represent 2;

    ga, Da, ba and la ( g: R b: l: )all stand for 3;

    gha, Dha, bha and va ( G: Z B: v: )all denote 4;

    gna, na, ma and sha ( { N: m: S: ) all represent 5;

    cha, ta and Sha ( c: t: \: ) all  stand for 6;

    Cha, tha, and sa ( C T: s: ) all denote 7;

    ja, da and ha ( j: d h ) all represent 8;

    jha and dha ( J:  D: ) stand for 9; and

    Ksha (or Kshudra ) ( x:H ) means Zero!

 After knowing the code language, the key is now available with us. So, we'll try to find how the "gopi bhaagya..." shloka encodes the value of 'Pi' for 32 decimal places.

g::p:iB:agy:m:D:v:at:-:iS::deD:s:enD:g: . K:l:j:iev:t:K:at:av: g:l:hal:ars:D:r ..

gopIbhaagyamadhuvraata shrRiNgIshodadhisandhiga  khalajIvitakhaataava galahaalaarasandhara

Consider the first  part "gopIbhaagyamadhuvraata".  This can be split into syllables as " ga pa bha ya ma dha ra ta " which, according to the code language denotes the digits " 3 1 4 1 5 9 2 6 ". This continues further and the shloka encodes 32 digits of 'Pi' (note that Pi = 3.14159...)  As an exercise try and figure out the rest of the 32 digits with the help of the code language and the "gopi..." shloka.