add decimal interface

Issue:I95TP7

Signed-off-by: liujia178 <liujia178@huawei.com>
This commit is contained in:
liujia178 2024-05-06 10:47:12 +08:00
parent 3b9735669c
commit ce4b57a2a9
4 changed files with 2094 additions and 1 deletions

View File

@ -55,6 +55,7 @@ ohos_copy("bundle_arkts") {
outputs = [ target_out_dir + "/$target_name" ]
module_source_dir = target_out_dir + "/$target_name"
module_install_name = ""
license_file = "./LICENCE.md"
}
ohos_copy_internal("ets_internal_api") {

29
LICENCE.md Normal file
View File

@ -0,0 +1,29 @@
The API design of the arkts.math.Decimal module is based on the third-party software Decimal.js,
which is licensed under the MIT License. To comply with open-source licensing,
we acknowledge the MIT License terms and include this notice.
Please refer to the full LICENSE text for Decimal.js's licensing terms and conditions.
The MIT Licence.
Copyright (c) 2022 Michael Mclaughlin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

File diff suppressed because it is too large Load Diff

View File

@ -50,11 +50,12 @@ import lang from '@arkts.lang';
import ArkTSUtils from '@arkts.utils';
import collections from '@arkts.collections';
import stream from '@ohos.util.stream';
import Decimal from '@arkts.math.Decimal';
export {
ArrayList, convertxml, DedicatedWorkerGlobalScope, Deque, ErrorEvent, Event, EventListener,
EventTarget, HashMap, HashSet, LightWeightMap, LightWeightSet, LinkedList, List, MessageEvent,
MessageEvents, PlainArray, PostMessageOptions, Queue, Stack, ThreadWorkerGlobalScope, TreeMap,
TreeSet, Vector, WorkerEventListener, WorkerEventTarget, WorkerOptions, buffer, process, taskpool,
uri, url, util, worker, xml, JSON, lang, ArkTSUtils, collections, stream
uri, url, util, worker, xml, JSON, lang, ArkTSUtils, collections, stream, Decimal
};