When the type of value and the named keyword agrees the assignment always succeeds and status=0 is returned. List of possible return value for status:
Notice that the string to floating point conversions never return status=0, but instead return status=1 for a successful conversion, indicating that accuracy may have been lost. Certain strings like "0.25" can in principle be converted to floating point without loss of information, whereas strings like "0.1" do not have a finite binary representation. The C library functions strtof and strtod used internally in JSOC do not provide information to distinguish the two cases, so we take the more cautious approach of always returning status=1 to remind the user that rounding may have occured. The same argument holds for conversion from floating point to string.