You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: pages/ref/core-strings.mdx
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -217,7 +217,7 @@ Extension function for the [`String{:tact}`][p].
217
217
218
218
Returns a [`Slice{:tact}`][p] out of the decoded [Base64](https://en.wikipedia.org/wiki/Base64)[`String{:tact}`][p]. Alias to `self.asSlice().fromBase64(){:tact}`.
219
219
220
-
Note, that this function is very limited and can be used only for small strings that fit in a single [`Cell{:tact}`][p] (i.e., strings that contain no more than 1023 bits of data).
220
+
Note, that this function is limited and only takes the first $1023$ bits of data from the given [`String{:tact}`][p], without throwing an exception when the [`String{:tact}`][p]is larger (i.e. contains more than $1023$ bits of data).
221
221
222
222
Usage example:
223
223
@@ -239,7 +239,7 @@ Extension function for the [`Slice{:tact}`][p].
239
239
240
240
Returns a [`String{:tact}`][p] from a [`Slice{:tact}`][p] by trying to load all of its bits without looking for its references, if any.
241
241
242
-
Note, that this function doesn't look at the references at all and is truncates its output to 1023 bits, so use it only if you know what you're doing.
242
+
Note, that this function doesn't look at the references at all and is truncates its output to $1023$ bits, so use it only if you know what you're doing.
243
243
244
244
Usage example:
245
245
@@ -259,9 +259,9 @@ extends fun fromBase64(self: Slice): Slice;
259
259
260
260
Extension function for the [`Slice{:tact}`][p].
261
261
262
-
Returns a [`Slice{:tact}`][p] out of the decoded [Base64](https://en.wikipedia.org/wiki/Base64)[`Slice{:tact}`][p].
262
+
Returns a new [`Slice{:tact}`][p] out of the decoded [Base64](https://en.wikipedia.org/wiki/Base64)[`Slice{:tact}`][p].
263
263
264
-
Note, that this function doesn't load [`Cell{:tact}`][p] references, which makes it limited to only 1023 bits of data.
264
+
Note, that this function is limited and only takes the first $1023$ bits of data from the given [`Slice{:tact}`][p], without throwing an exception if the [`Slice{:tact}`][p] has more data (i.e., when it has any references).
265
265
266
266
Usage example:
267
267
@@ -296,7 +296,7 @@ Extension function for the [`Int{:tact}`][int].
296
296
297
297
Returns a [`String{:tact}`][p] from an [`Int{:tact}`][int] value using a [fixed-point representation](https://en.wikipedia.org/wiki/Fixed-point_arithmetic) of a fractional number, where `self` is a significant part of the number and `digits` is a number of digits in the fractional part.
298
298
299
-
More precisely, `digits` is an exponentiation parameter of $10^{-\mathrm{digits}}$ expression, which gives the represented fractional number when multiplied by the actual [`Int{:tact}`][int] value. Parameter `digits` is required to be in the semi-closed interval: $0 <=$`digits`$<77$.
299
+
More precisely, `digits` is an exponentiation parameter of $10^{-\mathrm{digits}}$ expression, which gives the represented fractional number when multiplied by the actual [`Int{:tact}`][int] value. Parameter `digits` is required to be in the semi-closed interval: $0 <=$`digits`$<78$,otherwiseanexceptionwith[exitcode134](/book/exit-codes#134)willbethrown:`Invalidargument`.
0 commit comments