ENCLOSEDAREAS

The function ENCLOSEDAREAS calculates the enclosed areas – holes – in s string.

The calculation can be steerd with the parameters modeNumber and mode4.

  • modusNumber:
    1: only numbers are valid
    0: all characters and digits are valid
  • modus4:
    1: digit 4 is a closed area
    0: digit 4 is an open area

ENCLOSEDAREAS(string, modeNumber, mode4) => number