I am currently trying to store the value NaN
in Firebase.
Here is my setup:
The value is let varname = Double.nan;
I am setting the value by calling FIRDatabase.database().reference(withPath: "test").setValue(varname);
But I am getting the following error:
'InvalidFirebaseData', reason: '(setValue:) Cannot store NaN at path: varname.'
Is there a different way I should be saving this NaN
?