Jaytea already gave the answer I think...

//var %g = 5, %x = 1 | echo -a $+(%x,$str(0,%g))

Returns: 100000

Take a look at: /help $str