Can I cast a calculated result to a FIXED POINT DECIMAL?

I have a simple @{N= ; E=; } calculation as follows:

 $Prop = @{ N = 'Prop'; E = [decimal]( simple arithmetic formula) }

which I subsequently use in a Select statement as part of the -Property parameter list.

I wish to have the calculated result in the “E = [decimal]” maintain only one (1) decimal digit. At the present, it displays too many digits. Is there a way?

Thanks in advance for your help.

I use this

[math]::round(( simple arithmetic formula ),2)

You could use the format operator, but it results in a string. It uses the same formatting codes as C#.

PS C:\> '{0:f1}' -f 1233.3333                                                   


Many thanks!