Explicit RTS flag arg checking (fixes #17720)
Implements a fix for #17720 (closed):
The original code was using atof; although the issue recommended to replace it with strtof, I chose strtod because I wanted to preserve the data type.
Edited by Stefan Pavikevik