Answer the question
In order to leave comments, you need to log in
If the number in the database is decimal, which typehint should I do, double or float?
After all, in fact, it comes to me purely with a dot all the time, I have a decimal of this format
* @ORM\Column(type="decimal", precision=9, scale=2, options={"unsigned": true,})
function getDecimal() : float ? double
{
return 9999.99;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question