Giter Club home page Giter Club logo

Comments (4)

slouken avatar slouken commented on September 13, 2024

Octal numbers and other bases are not supported, and can be documented, though we can add those as needed. Not supporting upper case 0X is a bug, and will be fixed.

from sdl.

slouken avatar slouken commented on September 13, 2024

Although, realistically if those are easy to add, feel free to submit a PR with testautomation coverage and improved implementation.

from sdl.

castholm avatar castholm commented on September 13, 2024

Another example of an API that is unclear is SDL_strtod. Is only decimal notation supposed to be supported (i.e. no scientific or hexadecimal notation)? Should it support "NAN" or "INF"? SDL_ScanFloat divides the intermediate result by 10 in a loop, so is the precision of the rounding of the result intentionally unspecified?

from sdl.

slouken avatar slouken commented on September 13, 2024

Another example of an API that is unclear is SDL_strtod. Is only decimal notation supposed to be supported (i.e. no scientific or hexadecimal notation)? Should it support "NAN" or "INF"? SDL_ScanFloat divides the intermediate result by 10 in a loop, so is the precision of the rounding of the result intentionally unspecified?

Only decimal notation is supported, NAN and INF or not, rounding is unspecified. Again, if any of these are an issue, they can be fixed, they just haven't come up in practice.

from sdl.

Related Issues (20)

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.