1. let rec DollarToCents line expand=
  2. match line with
  3. |[]->[]
  4. |[char] -> char
  5. |h::tail when h='$'-> h::DollarToCents tail true
  6. |h::tail when h=' ' && expand ->'0'::'0'::' '::DollarToCents tail false
  7. |h::tail when h='.' ->DollarToCents tail false
  8. log2|>List.map (fun zeile->DollarToCents zeile false)
  9.