chore: gofmt.
This commit is contained in:
parent
e5bb4e5154
commit
15a204aa25
@ -321,9 +321,9 @@ var _ SOAPValue = &Fixed14_4{}
|
|||||||
|
|
||||||
// Fixed14_4FromParts creates a Fixed14_4 from components.
|
// Fixed14_4FromParts creates a Fixed14_4 from components.
|
||||||
// Bounds:
|
// Bounds:
|
||||||
// * Both intPart and fracPart must have the same sign.
|
// - Both intPart and fracPart must have the same sign.
|
||||||
// * -1e14 < intPart < 1e14
|
// - -1e14 < intPart < 1e14
|
||||||
// * -1e4 < fracPart < 1e4
|
// - -1e4 < fracPart < 1e4
|
||||||
func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
|
func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
|
||||||
var v Fixed14_4
|
var v Fixed14_4
|
||||||
err := v.SetParts(intPart, fracPart)
|
err := v.SetParts(intPart, fracPart)
|
||||||
@ -332,9 +332,9 @@ func Fixed14_4FromParts(intPart int64, fracPart int16) (Fixed14_4, error) {
|
|||||||
|
|
||||||
// SetFromParts sets the value based on the integer component and the fractional component.
|
// SetFromParts sets the value based on the integer component and the fractional component.
|
||||||
// Bounds:
|
// Bounds:
|
||||||
// * Both intPart and fracPart must have the same sign.
|
// - Both intPart and fracPart must have the same sign.
|
||||||
// * -1e14 < intPart < 1e14
|
// - -1e14 < intPart < 1e14
|
||||||
// * -1e4 < fracPart < 1e4
|
// - -1e4 < fracPart < 1e4
|
||||||
func (v *Fixed14_4) SetParts(intPart int64, fracPart int16) error {
|
func (v *Fixed14_4) SetParts(intPart int64, fracPart int16) error {
|
||||||
if (intPart < 0) != (fracPart < 0) {
|
if (intPart < 0) != (fracPart < 0) {
|
||||||
return fmt.Errorf("want intPart and fracPart with same sign, got %d and %d",
|
return fmt.Errorf("want intPart and fracPart with same sign, got %d and %d",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user