Hot answers tagged

4

Borrowing some of the display-related code for TransformationFunction[], I came up with this: MakeBoxes[PartitionedMatrixForm[M_, {p_Integer, q_Integer}], fmt_] ^:= Module[{mat}, mat = If[Unevaluated[M] =!= {{}} && MatrixQ[Unevaluated[M]] && And @@ MapThread[0 <= Abs[#2] <= #1 - 1 &, {Dimensions[M], {p,...


4

I think you need the SignPadding option: NumberForm[-60., {3, 1}, NumberPadding -> {" ", "0"}, NumberSigns -> {{"(", ")"}, ""}, SignPadding -> True] (60.0)



Only top voted, non community-wiki answers of a minimum length are eligible