Added is_error option to formatPrint

Added is_error option to formatPrint to write '--' to the target element
(either html element or input).

Changed  formatPrint in countUp error to is_error=true.