🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Controlling default output precision

User: "Hakan_20716"
Altair Community Member
Updated by unknown

Hi,

As a result of the following operation, the result is printed 22 instead of 22.5. How can we change this?

set a 180
set b 4
set c 8
set d [expr $a/$b];
set e [expr $a/$c];

Find more posts tagged with