update examples, fix float precision issue