Skip to content

Commit

Permalink
Added precision rules of double type for m_prec parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Maltsev committed Apr 4, 2021
1 parent 0e08795 commit 4731d0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ int OnInit(){
- `data.Size();` - Gets size of `CJAVal` object.


### Precision rules of double type for m_prec parameter

- If the `m_prec` value is in the range from 0 to 16, then a string representation of the number with the specified number of decimal places will be obtained.
- If the `m_prec` value is in the range from -1 to -16, then the string representation of the number in scientific format with the specified number of decimal places will be obtained.
- In all other cases, the string representation of the number will contain 8 decimal places.

## Run tests

1. Copy `JAson/Experts/TestJAson.mq4` to `<TERMINAL DIR>/MQL(4/5)/Experts`
Expand Down

0 comments on commit 4731d0c

Please sign in to comment.