Coder Social home page Coder Social logo

Integration with Doctrine about math HOT 2 CLOSED

brick avatar brick commented on July 21, 2024
Integration with Doctrine

from math.

Comments (2)

doMynation avatar doMynation commented on July 21, 2024 1

Of course! πŸ€¦β€β™‚οΈ

I somehow thought of() would just default to a scale of 0. Sorry about that, and thank you very much for the prompt response.

I'm closing the issue.

from math.

BenMorel avatar BenMorel commented on July 21, 2024

Hi πŸ‘‹, thank you!

The mapping you've linked to:
https://github.com/brick/brick/blob/master/src/Doctrine/Types/Math/BigDecimalType.php

is part of another project of mine, which is unreleased to date, but is the correct way to map a BigDecimal to a MySQL DECIMAL. When retrieved from the database, it will be passed as a string to of(), which will preserve the number of digits after the decimal place.

Let me know if this clears it up for you!


Code is like humor. When you have to explain it, it’s bad.

I love this :)

from math.

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.