you are viewing a single comment's thread
view the rest of the comments
[–] [S] 1 point 4 months ago

Reference values are quite useful, such as:

double valOut;
if (parseDouble(valOut) == 0) { //Argument of parseDouble is ref type, no & needed for input, no exceptions needed for error handling
    [...] //No error, code executed normally
} else {
    [...] //Erroreus input
}
  • source
  • parent