title: Only show decimal for non-integers in Liquid
body: <p>Pretty simple one I think, but can't work out if it is possible. I have a number in a Liquid template that should only have a decimal place if it isn't an integer. Unfortunately the database stores a float (which I cannot change), so my only option is to try do this in Liquid. Essentially if the number is <code>5.5</code> I want it to output that. However it the number is <code>5.0</code> I want it to output <code>5</code>. </p>
  
  <p>I can't see a way of checking whether a number is a float or not. Ideas?</p>