How do I represent an null value in type float for Ocaml

I know this may seem very basic but basically, I want to say in pattern matching

match value with
  Null-> failwith "Empty"
 |value-> #do something

I've tried any variation of null or none, and have also tried unit which cannot be used because value is a float.

I am stumped and any help would be appreciated

5
задан rampion 16 February 2011 в 18:49
поделиться