Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A ArduinoJson
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Benoît Blanchon
  • ArduinoJson
  • Merge requests
  • !64

convert long to double

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/firepick1/master into master Apr 17, 2015
  • Overview 4
  • Commits 2
  • Pipelines 0
  • Changes 3

Created by: firepick1

Benoit,

Many thanks for ArduinoJson. I intend to use it in FirePick Delta for CNC motion control adopting a JSON style of interaction modeled after TinyG. I do very much like your library. For larger projects I use Jansson, but your library is excellent for Arduino with its smaller footprint.

On a minor note, I made a small modification that you may or may not want. I convert long to double automatically. For me this simplifies my code so that I can deal with numbers as double regardless. I'm happy working off my fork--that's the only thing I had to change. I know that it's a slippery slope doing this type of "nice conversion." In this case, I found it worthwhile on the client side. The alternate solution is to provide a new utility method (e.g., asNumber()). After careful consideration, I chose this as less invasive of the API.

Anyhow, thanks for ArduinoJson!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/firepick1/master