I'm sure you can hack it together using a series of filters, but a quick and dumb solution would be to simply wrap your price
in quotation marks to make it a string value instead of a number value. In that case, it will come out exactly as you typed it, including any trailing zeroes.
products:
- item: item name
price: "39.50"
- item: item number two
price: "12.50"
If you need to do stuff with the numeric value, you could have two variables: a number value for the price and a string value for the price label.
products:
- item: item name
price: 39.50
priceLabel: "39.50"
- item: item number two
price: 12.50
priceLabel: "12.50"