Giter VIP home page Giter VIP logo

labfis.py's People

Contributors

hlouzada avatar jaocr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

labfis.py's Issues

Wrong Formating

When creating a labfloat object with a = labfloat(0.0010264799999999998, 9.924641051443623e-06), and printing it should return (0.00103 ± 1e-05), insted of (0.001026 ± 1e-05)

Resultado estranho no truncamento.

Ao multiplicar por uma constante, o truncamento ficou estranho.
image
Ficou 1.07 ± 0.1. Acredito que o certo seria 1.1 ± 0.1. Não foi nada muito sério, mas o software não deveria fazer truncamento automático?

BUG: Wrong default rouding

Describe the bug
Wrong rounding, using round half down instead of round half up.

To Reproduce
Steps to reproduce the behavior:

a = labfloat(0.395231,0.00095)
print(a)

prints: (0.3952 ± 0.0009)

Expected behavior
(0.395 ± 0.001)

Environment details:

  • OPERATING SYSTEM---------------------------------------------------------------
    • System........................ Windows
    • Release....................... 10
    • Platform...................... Windows-10-10.0.21390-SP0
    • Version....................... 10.0.21390
  • PYTHON DISTRIBUTION------------------------------------------------------------
    • Version....................... 3.8.8
    • C Compiler.................... MSC v.1928 64 bit (AMD64)
    • C API Version................. 1013
    • Implementation................ cpython
    • Implementation Version........ 3.8.8
  • CONDA DISTRIBUTION-------------------------------------------------------------
    • Version....................... 4.9.2
    • Build......................... 3.21.4
  • PYTHON PACKAGES----------------------------------------------------------------
    • labfis........................ 1.2.0
  • CONDA PACKAGES-----------------------------------------------------------------
    • labfis........................ 1.2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.