Giter Site home page Giter Site logo

Comments (7)

 avatar commented on June 4, 2024 1

@Kampfkarren I don't get it why Roblox makes bug reporting for the engine such a pain.

from core-scripts.

LPGhatguy avatar LPGhatguy commented on June 4, 2024 1

This is an artifact of IEEE floating point numbers and slightly differing implementations. It doesn't really matter and isn't a bug.

You shouldn't try to compare floating point values directly, that's almost never what you want.

from core-scripts.

Kampfkarren avatar Kampfkarren commented on June 4, 2024

It is out of scope, you'd post this one on the dev forums.

Either way, nobody really needs this degree of accuracy on Roblox, but if you do you can just use your own custom function. It is a bug, but not really one that matters too much.

from core-scripts.

ZachCurtis avatar ZachCurtis commented on June 4, 2024

Not a dev forum member. Lost quite a bit of time hunting down seemingly causeless math bugs during unit testing; turns out the bugs weren't mine. Thankfully spotted the issue but it required a print() on pretty much every single variable until I noticed it was the Vector3.magnitude call.

Noticed that Color3.toHSV() does this as well:

My toHSV function; final decimal point correctly rounds:
0.16666666666667 0.58823525905609 1
Color3.toHSV, very odd that it rounds earlier and fills in digits after the round with seemingly random numbers:
0.16666667163372 0.58823525905609 1

Roblox's object's methods should cut off the return value at 8 decimal places if a solution to return the correct number is not possible.

from core-scripts.

 avatar commented on June 4, 2024

@ZachCurtis all of the object methods, such as Instance and Vector3 are part of the C/C++ engine, not the CoreScripts. Report it via email here, or report it on the devforum (or get someone to do it for you)

from core-scripts.

Kampfkarren avatar Kampfkarren commented on June 4, 2024

@stillunt1tled Dev forum members can not post on behalf of other users, including non-members.

from core-scripts.

cliffchapmanrbx avatar cliffchapmanrbx commented on June 4, 2024

Hi there, thank you for your feedback. We're going to be closing this repository as we've chosed the Roblox Dev Forum as our venue for developer feedback. Please feel free to migrate your feedback to a DevForum post if you feel it is still relevant.

from core-scripts.

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.