Implement numeric computation for literal expressions