Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion decimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ var MaxDecodeExponent = 10000
var Zero = Decimal{}

// Decimal represents a fixed-point decimal. It is immutable.
// number = value * 10 ^ exp
type Decimal struct {
// number = value * 10 ^ exp

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now it's field comment and it shouldn't be, bcs it's confusing for value. we should reword or change place of it

value *big.Int

// NOTE(vadim): this must be an int32, because we cast it to float64 during
Expand Down