Skip to content

Commit

Permalink
Merge pull request #47 from paulypeter/dev-coc
Browse files Browse the repository at this point in the history
bugfix for dof_far()
  • Loading branch information
paulypeter authored Jun 27, 2021
2 parents 3f5f518 + 7772531 commit 79d0fc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photography-toolbox",
"version": "0.2.8",
"version": "0.2.9",
"description": "A toolbox for calculationg Depth of Field, Exposure and much more to come ",
"main": "./src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/crop-factor.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dof_near = (distance, focal_length, f_stop, coc) => {

dof_far = (distance, focal_length, f_stop, coc) => {
hyperfocal_dist = hyperfocal(focal_length, f_stop, coc)
return (
return Number(
(hyperfocal_dist * distance /
(hyperfocal_dist - distance + focal_length) / 1000
).toFixed(2)
Expand Down

0 comments on commit 79d0fc5

Please sign in to comment.