Skip to content

Commit

Permalink
Updated Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed Dec 20, 2015
1 parent e9a4319 commit 800f835
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Result Precision
================================
The precision of the results can be set using two optional paramerters in the to() function to specify the decimal precision and use of rounding.
```php
$precisionConvertor->to("ft",4,true);
$precisionConvertor->to("ft", 4, true);
```
The second parameter specifies the decimal precision of the result, the thir parameter indicates weather the result syhould be rounded (true, default value) or truncated (false).

Expand Down
4 changes: 2 additions & 2 deletions examples.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@
<section>
<header>Result Precision</header>
<p>The precision of the results can be set using two optional paramerters in the to() function to specify the decimal precision and use of rounding.</p>
<pre>$precisionConvertor->to("ft",4,true);</pre>
<pre>$precisionConvertor->to("ft", 4, true);</pre>
<p>The second parameter specifies the decimal precision of the result, the thir parameter indicates weather the result syhould be rounded (true, default value) or truncated (false).</p>

<?php
$precisionConvertor = new Convertor(10, "m");
?>

<p>10 Meters = <?php echo($precisionConvertor->to("ft",4,true)); ?> Feet (rounded to 4 decimal places)</p>
<p>10 Meters = <?php echo($precisionConvertor->to("ft", 4, true)); ?> Feet (rounded to 4 decimal places)</p>

</section>

Expand Down

0 comments on commit 800f835

Please sign in to comment.