From 82a3fdabd3e4c0f4a76c8bdb6434dceeb9454c0f Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Tue, 7 May 2024 13:19:50 -0600 Subject: [PATCH] add comma separators to values in PickupCoilDebuggerPanel, https://github.com/phetsims/faradays-electromagnetic-lab/issues/156 --- js/common/view/PickupCoilDebuggerPanel.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/common/view/PickupCoilDebuggerPanel.ts b/js/common/view/PickupCoilDebuggerPanel.ts index 87645ef0..3f2f650e 100644 --- a/js/common/view/PickupCoilDebuggerPanel.ts +++ b/js/common/view/PickupCoilDebuggerPanel.ts @@ -56,13 +56,13 @@ export default class PickupCoilDebuggerPanel extends Panel { }, providedOptions ); const fluxStringProperty = new DerivedStringProperty( [ pickupCoil.fluxProperty ], - flux => `${Utils.toFixed( flux, 0 )}` ); + flux => `${Utils.toFixedNumber( flux, 0 ).toLocaleString()}` ); const deltaFluxStringProperty = new DerivedStringProperty( [ pickupCoil.deltaFluxProperty ], - deltaFlux => `${Utils.toFixed( deltaFlux, 0 )}` ); + deltaFlux => `${Utils.toFixedNumber( deltaFlux, 0 ).toLocaleString()}` ); const emfStringProperty = new DerivedStringProperty( [ pickupCoil.emfProperty ], - emf => `${Utils.toFixed( emf, 0 )}` ); + emf => `${Utils.toFixedNumber( emf, 0 ).toLocaleString()}` ); const titleText = new Text( 'Pickup Coil debugger', { font: FELConstants.TITLE_FONT