diff --git a/CHANGELOG.md b/CHANGELOG.md index f9c05b5..0f77a85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ ### Added + * Allow scientific notation in float literals + ### Removed ### Changed @@ -23,6 +25,10 @@ ### Contributors +My warmhearted thanks goes to + + * [Dennis Marttinen](https://github.com/twelho) + ## [6.3.0](https://github.com/ISibboI/evalexpr/compare/6.2.1...6.3.0) - 2021-07-06 ### Added diff --git a/README.md b/README.md index 8c4d018..60401ce 100644 --- a/README.md +++ b/README.md @@ -382,7 +382,7 @@ Values are denoted as displayed in the following table. | `Value::String` | `"abc"`, `""`, `"a\"b\\c"` | | `Value::Boolean` | `true`, `false` | | `Value::Int` | `3`, `-9`, `0`, `135412` | -| `Value::Float` | `3.`, `.35`, `1.00`, `0.5`, `123.554` | +| `Value::Float` | `3.`, `.35`, `1.00`, `0.5`, `123.554`, `23e4`, `-2e-3`, `3.54e+2` | | `Value::Tuple` | `(3, 55.0, false, ())`, `(1, 2)` | | `Value::Empty` | `()` | diff --git a/src/lib.rs b/src/lib.rs index a1aabcf..8f2fcac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -365,7 +365,7 @@ //! | `Value::String` | `"abc"`, `""`, `"a\"b\\c"` | //! | `Value::Boolean` | `true`, `false` | //! | `Value::Int` | `3`, `-9`, `0`, `135412` | -//! | `Value::Float` | `3.`, `.35`, `1.00`, `0.5`, `123.554` | +//! | `Value::Float` | `3.`, `.35`, `1.00`, `0.5`, `123.554`, `23e4`, `-2e-3`, `3.54e+2` | //! | `Value::Tuple` | `(3, 55.0, false, ())`, `(1, 2)` | //! | `Value::Empty` | `()` | //!