Skip to content

Commit 852190b

Browse files
Merge pull request rails#55316 from hachi8833/fix_typo_365
[ci skip][doc]Fix engineering notation -> scientific notation
2 parents a645581 + 3fd89fd commit 852190b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/source/active_support_core_extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,13 +2187,13 @@ Extensions to `BigDecimal`
21872187

21882188
### `to_s`
21892189

2190-
The method `to_s` provides a default specifier of "F". This means that a simple call to `to_s` will result in floating-point representation instead of engineering notation:
2190+
The method `to_s` provides a default specifier of "F". This means that a simple call to `to_s` will result in floating-point representation instead of scientific notation:
21912191

21922192
```ruby
21932193
BigDecimal(5.00, 6).to_s # => "5.0"
21942194
```
21952195

2196-
Engineering notation is still supported:
2196+
Scientific notation is still supported:
21972197

21982198
```ruby
21992199
BigDecimal(5.00, 6).to_s("e") # => "0.5E1"

0 commit comments

Comments
 (0)