We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I implement precision on decimals(float) using gorm?
type Abc struct { FieldOne float64 gorm:"precision(8,2) // eight digits with 2 decimal places }
gorm:"precision(8,2)
The text was updated successfully, but these errors were encountered:
Use column type as numeric(8,2) // Eight digits and Two decimal places.
Example:
type Abc struct { FieldOne float64 `gorm:"type:numeric(8,2)"` }
Sorry, something went wrong.
how to define decimal(32,16)?
jinzhu
No branches or pull requests
Your Question
How can I implement precision on decimals(float) using gorm?
type Abc struct {
FieldOne float64
gorm:"precision(8,2)
// eight digits with 2 decimal places}
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered: