Code Monkey home page Code Monkey logo

Comments (1)

sgalgano avatar sgalgano commented on July 25, 2024

The issue occurs when using floating point representation with K, M or G SI unit values for integer configuration items such as frequency. The conversion code applies the appropriate power of 10 but does not remove any leading zeros that may result.

After conversion, a leading 0 causes the result to be treated as an octal value. If the parameter value only contains values in the set of allowable octal characters, the conversion would succeed but as base 8. If the value contains digits outside the octal set (e.g. 0.9G), conversion would fail with an unallowed character exception description.

Functionality can be added to remove any leading zeros after SI unit application, being mindful of possible sign inclusion. This will effectively cause all integer values with SI units to be treated as base 10, which is probably the most logical expectation.

from emane.

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.