Is it right to use a float numbers instead of text in design

We have a design that indicate the user about the measurement of food ingredients

For example:

  • 1.5 cup
  • 0.5 cup

Is it right to use it as above or replace it with

  • 1 cup and half
  • A half of cup