Skip to content

Question about aJsonStream::printFloat #84

@3sigma

Description

@3sigma

Hello,

I would like to know why aJsonStream::printFloat is not written simply as:

int aJsonStream::printFloat(aJsonObject *item)
{
  if (item != NULL)
    {
      double d = item->valuefloat;
      this->print(d, FLOAT_PRECISION);
   }
  //printing nothing is ok
  return 0;
}

Thanks in advance,

Nicolas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions