mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-81458 question: Cast the fraction value to a float
When retrieving the answer data from the database, it's essential to cast the value of the answer's fraction to a float before storing it into the question object. This step is crucial for ensuring consistency, as some database engines return floats as strings like '1.0000000'.
- Loading branch information
Mihail Geshoski
committed
Apr 9, 2024
1 parent
b621a7e
commit 72e9a1b
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters