Skip to content

Added literal float to improve precision #3294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2015

Conversation

agdl
Copy link
Member

@agdl agdl commented Jun 5, 2015

according to #2922 I added missing float literals to improve the accuracy of the result.

If sensorValue = 1:

Before: voltage = 4

Now: voltage = 4.88

@agdl agdl force-pushed the TemperatureWebPanelFix branch from 8190d29 to ecebdeb Compare June 5, 2015 10:27
@agdl agdl changed the title Added cast to improve precision Added literal float to improve precision Jun 5, 2015
according to arduino#2922 I added missing float literals to improve the accuracy of the result.

If sensorValue = 1:

Before: voltage = 4

Now: voltage = 4.88
@agdl agdl force-pushed the TemperatureWebPanelFix branch from ecebdeb to 8a54c70 Compare June 5, 2015 10:30
ffissore added a commit that referenced this pull request Jun 5, 2015
Added literal float to improve precision
@ffissore ffissore merged commit 99bc0a0 into arduino:master Jun 5, 2015
@ffissore ffissore added this to the Release 1.6.5 milestone Jun 5, 2015
@ffissore ffissore added the Library: Bridge The Bridge Arduino library label Jun 5, 2015
@ffissore ffissore self-assigned this Jun 5, 2015
@agdl agdl deleted the TemperatureWebPanelFix branch March 18, 2016 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Library: Bridge The Bridge Arduino library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants