@AmalMurali because what you've passed to the function, is garbage. It's ok to expect garbage in return :p Actually, on what you
can rely - is formats, which are described in the corresponding
manual page. Other things are not claimed - and if they
occasionally work (it's about your third sample) - then it's like
undocumented feature.