I have the following code. I would like to have it such that if price_result equals an integer, let\'s say 10, then I would like to add two decimal places. So 10 would be 10
ceil from lodash is probably the best
_.ceil("315.9250488",2) _.ceil(315.9250488,2) _.ceil(undefined,2) _.ceil(null,2) _.ceil("",2)
will work also with a number and it's safe