Skip to content

Commit fa6f2f2

Browse files
author
Marije Baalman
committed
Tools: create redirect for asStringPrec for Integer
1 parent 5ef15ec commit fa6f2f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modality/Classes/Tools/IntegerClip.sc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ IntegerClip {
2727
}
2828
}
2929

30+
// to avoid an error on the .trace method
31+
+ Integer {
32+
asStringPrec { arg precision;
33+
this.asFloat.asStringPrec( precision );
34+
}
35+
}

0 commit comments

Comments
 (0)