aboutsummaryrefslogtreecommitdiff
path: root/unipdf/internal/precision/precision.go
diff options
context:
space:
mode:
authorleshe4ka46 <alex9102naid1@ya.ru>2025-10-19 14:47:59 +0300
committerleshe4ka46 <alex9102naid1@ya.ru>2025-10-19 14:47:59 +0300
commite17a425dfb3382310fb5863f516dacdca9f44956 (patch)
tree7babb3048d0eb20aa1e68e9b29c2acfa794ab96f /unipdf/internal/precision/precision.go
parent091963a50c3bb2926f559f01c49e8f5bd03d2bfd (diff)
fuck the unipdf licencing
Diffstat (limited to 'unipdf/internal/precision/precision.go')
-rw-r--r--unipdf/internal/precision/precision.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/unipdf/internal/precision/precision.go b/unipdf/internal/precision/precision.go
new file mode 100644
index 0000000..bd25462
--- /dev/null
+++ b/unipdf/internal/precision/precision.go
@@ -0,0 +1,13 @@
+//
+// Copyright 2020 FoxyUtils ehf. All rights reserved.
+//
+// This is a commercial product and requires a license to operate.
+// A trial license can be obtained at https://unidoc.io
+//
+// DO NOT EDIT: generated by unitwist Go source code obfuscator.
+//
+// Use of this source code is governed by the UniDoc End User License Agreement
+// terms that can be accessed at https://unidoc.io/eula/
+
+package precision ;import _d "math";const (DefaultPrecision =4;);func RoundDefault (value float64 )float64 {return RoundFloat (value ,DefaultPrecision )};func RoundFloat (value float64 ,precision int )float64 {_c :=_d .Pow (10,float64 (precision ));return _d .Round (value *_c )/_c ;
+}; \ No newline at end of file