Skip to content

Commit

Permalink
floats: note about precision
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 18, 2024
1 parent 49ba100 commit 730ee55
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/bg/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

При опит за сравняване на `NAN` се получава изключение `\LogicException`.

.[tip]
Класът `Floats` толерира разлики, по-малки от `1e-10`. Ако трябва да работите с по-голяма точност, използвайте вместо това библиотеката BCMath.


Сравнение на плаващи стойности .[#toc-float-comparison]
=======================================================
Expand Down
3 changes: 3 additions & 0 deletions utils/cs/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

Při pokusu porovnávat `NAN` vyhodí výjimku `\LogicException`.

.[tip]
Třída `Floats` toleruje rozdíly menší než `1e-10`. Pokud potřebujete pracovat s větší přesností, použijte raději knihovnu BCMath.


Porovnávání floatů
==================
Expand Down
3 changes: 3 additions & 0 deletions utils/de/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'gleich' : 'nicht gleich'; // gleich

Beim Versuch, `NAN` zu vergleichen, kommt es zu einer `\LogicException` Ausnahme.

.[tip]
Die Klasse `Floats` toleriert Unterschiede, die kleiner sind als `1e-10`. Wenn Sie mit größerer Genauigkeit arbeiten müssen, verwenden Sie stattdessen die BCMath-Bibliothek.


Float-Vergleich .[#toc-float-comparison]
========================================
Expand Down
3 changes: 3 additions & 0 deletions utils/el/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same': 'not same'; // ίδιο

Όταν προσπαθεί να συγκρίνει το `NAN`, πετάει μια εξαίρεση `\LogicException`.

.[tip]
Η κλάση `Floats` ανέχεται διαφορές μικρότερες από `1e-10`. Αν θέλετε να εργαστείτε με μεγαλύτερη ακρίβεια, χρησιμοποιήστε τη βιβλιοθήκη BCMath.


Σύγκριση float .[#toc-float-comparison]
=======================================
Expand Down
3 changes: 3 additions & 0 deletions utils/en/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

When trying to compare `NAN`, it throws an `\LogicException` exception.

.[tip]
The `Floats` class tolerates differences less than `1e-10`. If you need to work with more precision, use the BCMath library instead.


Float Comparison
================
Expand Down
3 changes: 3 additions & 0 deletions utils/es/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

Al intentar comparar `NAN`, lanza una excepción `\LogicException`.

.[tip]
La clase `Floats` tolera diferencias inferiores a `1e-10`. Si necesita trabajar con más precisión, utilice en su lugar la biblioteca BCMath.


Comparación de flotadores .[#toc-float-comparison]
==================================================
Expand Down
3 changes: 3 additions & 0 deletions utils/fr/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

Lorsque l'on essaie de comparer `NAN`, une exception `\LogicException` est levée.

.[tip]
La classe `Floats` tolère des différences inférieures à `1e-10`. Si vous devez travailler avec plus de précision, utilisez plutôt la bibliothèque BCMath.


Comparaison de flottants .[#toc-float-comparison]
=================================================
Expand Down
3 changes: 3 additions & 0 deletions utils/hu/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

Amikor megpróbálja összehasonlítani a `NAN`, akkor a `\LogicException` kivételt dob.

.[tip]
A `Floats` osztály tolerálja a `1e-10`-nél kisebb különbségeket. Ha nagyobb pontossággal kell dolgoznia, használja helyette a BCMath könyvtárat.


Lebegő összehasonlítás .[#toc-float-comparison]
===============================================
Expand Down
3 changes: 3 additions & 0 deletions utils/it/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

Quando si tenta di confrontare `NAN`, viene lanciata un'eccezione `\LogicException`.

.[tip]
La classe `Floats` tollera differenze inferiori a `1e-10`. Se è necessario lavorare con maggiore precisione, utilizzare la libreria BCMath.


Confronto tra i galleggianti .[#toc-float-comparison]
=====================================================
Expand Down
3 changes: 3 additions & 0 deletions utils/pl/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

Podczas próby porównania `NAN` rzuca wyjątek `\LogicException`.

.[tip]
Klasa `Floats` toleruje różnice mniejsze niż `1e-10`. Jeśli potrzebujesz pracować z większą precyzją, użyj zamiast tego biblioteki BCMath.


Porównywanie pływaków .[#toc-float-comparison]
==============================================
Expand Down
3 changes: 3 additions & 0 deletions utils/pt/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

Ao tentar comparar `NAN`, ele lança uma exceção `\LogicException`.

.[tip]
A classe `Floats` tolera diferenças menores que `1e-10`. Se você precisar trabalhar com mais precisão, use a biblioteca BCMath.


Comparação de flutuadores .[#toc-float-comparison]
==================================================
Expand Down
3 changes: 3 additions & 0 deletions utils/ro/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same': 'not same'; // același

Când se încearcă să se compare `NAN`, se aruncă o excepție `\LogicException`.

.[tip]
Clasa `Floats` tolerează diferențe mai mici de `1e-10`. Dacă aveți nevoie să lucrați cu o precizie mai mare, utilizați în schimb biblioteca BCMath.


Compararea flotorilor .[#toc-float-comparison]
==============================================
Expand Down
3 changes: 3 additions & 0 deletions utils/ru/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

При попытке сравнить `NAN` возникает исключение `\LogicException`.

.[tip]
Класс `Floats` допускает различия меньше, чем `1e-10`. Если вам нужно работать с большей точностью, используйте библиотеку BCMath.


Сравнение плавающих значений .[#toc-float-comparison]
=====================================================
Expand Down
3 changes: 3 additions & 0 deletions utils/sl/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same': 'not same'; // enako

Ko poskuša primerjati `NAN`, pa vrže izjemo `\LogicException`.

.[tip]
Razred `Floats` dopušča razlike, manjše od `1e-10`. Če morate delati z večjo natančnostjo, uporabite knjižnico BCMath.


Primerjava floatov .[#toc-float-comparison]
===========================================
Expand Down
3 changes: 3 additions & 0 deletions utils/tr/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

`NAN` adresini karşılaştırmaya çalışırken `\LogicException` istisnası atar.

.[tip]
`Floats` sınıfı `1e-10`'dan daha az farkları tolere eder. Daha fazla hassasiyetle çalışmanız gerekiyorsa, bunun yerine BCMath kütüphanesini kullanın.


Şamandıra Karşılaştırması .[#toc-float-comparison]
==================================================
Expand Down
3 changes: 3 additions & 0 deletions utils/uk/floats.texy
Expand Up @@ -42,6 +42,9 @@ echo Floats::areEqual($a, $b) ? 'same' : 'not same'; // same

При спробі порівняти `NAN` виникає виняток `\LogicException`.

.[tip]
Клас `Floats` менш толерантний до відмінностей, ніж `1e-10`. Якщо вам потрібно працювати з більшою точністю, використовуйте замість нього бібліотеку BCMath.


Порівняння плаваючих значень .[#toc-float-comparison]
=====================================================
Expand Down

0 comments on commit 730ee55

Please sign in to comment.