Clarify documentation for resource.Value()

pull/564/head
Matt Kelly 2019-02-04 14:44:35 -05:00
parent f52713515b
commit 6fa122b2bc
No known key found for this signature in database
GPG Key ID: 6B46F2B5767577D6
1 changed files with 1 additions and 1 deletions

View File

@ -680,7 +680,7 @@ func NewScaledQuantity(value int64, scale Scale) *Quantity {
}
}
// Value returns the value of q; any fractional part will be lost.
// Value returns the unscaled value of q rounded up to the nearest integer away from 0.
func (q *Quantity) Value() int64 {
return q.ScaledValue(0)
}