Git Product home page Git Product logo

Comments (4)

Dieterbe avatar Dieterbe commented on August 23, 2024

another effect of this, is that for scale(...,5) the output becomes scale(...,5.0) , even though case isn't as bad, I would still argue the returned target string should display the factor how I choose to display it

from graphite-web.

nleskiw avatar nleskiw commented on August 23, 2024

This is probably just because its a float being printed to 2 decimal
places. I'll check glyph.py for the culprit.
On Nov 15, 2012 1:28 PM, "Dieter Plaetinck" [email protected]
wrote:

another effect of this, is that for scale(...,5) the output becomes
scale(...,5.0) , even though case isn't as bad, I would still argue the
returned target string should display the factor how I choose to display it


Reply to this email directly or view it on GitHubhttps://github.com//issues/103#issuecomment-10421581.

from graphite-web.

Dieterbe avatar Dieterbe commented on August 23, 2024

Btw according to @sivy it seems like it does the same for movingAverage, but it's actually worse:
when he specifies windowSize 30, graphite claims it was '30.0' instead of '30' (i don't really understand why because the code does the code does "%d" % 30 which should really yield "30", and he's using 0.9.9)
if you actually specify 30.0 then graphite complains like so https://gist.github.com/522f5c20ea3103719207

from graphite-web.

mleinart avatar mleinart commented on August 23, 2024

I've switched this to %g which should do the right thing, though it'll use scientific notation after 4 decimal places. To satisfy that, i've fixed the grammar to parse scientific notation as well here: ae910ae

from graphite-web.

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.