Enter layout mode.
Click to select the entire block of layout text that contains the merge field. You want selection handles--not highlighted text.
Use the inspector to select a number data format.
Note: this single data format will be applied to all number merge fields contained in the text object.