Skip to content

Commit 85edee6

Browse files
committed
Add fast type specific promotion note
1 parent 9082532 commit 85edee6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/modules/ROOT/pages/fast_types.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ decimal_fast128_t d);
210210
=== 3.2.8 Note
211211
In the event of binary arithmetic between a non-decimal type and a decimal type the arithmetic will occur between the native types, and the result will be returned as the same type as the decimal operand. (e.g. decimal_fast32_t * uint64_t -> decimal_fast32_t)
212212

213-
In the event of binary arithmetic between two decimal types the result will be the higher precision type of the two (e.g. decimal64_t + decimal_fast32_t -> decimal64_t)
213+
In the event of binary arithmetic between two decimal types the result will be the higher precision type of the two (e.g. decimal64_t + decimal_fast32_t -> decimal64_t).
214+
If the binary arithmetic is between an IEEE type, and it's fast equivalent, the result is the fast type (e.g. decimal_fast128_t - decimal128_t -> decimal_fast128_t).
214215

215216

216217
[#fast_operator_behavior]

0 commit comments

Comments
 (0)