Skip to content

Commit

Permalink
NumericTextStyles's format style now rounds towards zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Mar 4, 2022
1 parent 764c2f2 commit 8e96fe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/NumericTextStyles/Style.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public struct _NumericTextStyle<Format: NumericTextFormat>: DiffableTextStyle {
//=------------------------------------------------------------------------=

@inlinable var format: Format {
adapter.format
adapter.format.rounded(.towardZero)
}

@inlinable var scheme: Scheme {
Expand Down Expand Up @@ -100,7 +100,7 @@ extension NumericTextStyle {
//=------------------------------------------------------------------------=

@inlinable public func interpret(_ value: Value) -> Commit<Value> {
let style = format.precision(precision.active()).rounded(.towardZero)
let style = format.precision(precision.active())
var value = value
//=--------------------------------------=
// MARK: Autocorrect
Expand Down

0 comments on commit 8e96fe2

Please sign in to comment.