content += "<td>" + layerResults.features.attributes['FieldName'] + "</td>";
is what's displaying the value and it seems that for the number classes it is not receiving a value to put in. Though it works for string fields. I can't convert it to a string or number because no value comes across from the feature to put in the datagrid