A rail-limited ideal gain output is clipped by the declared high rail. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.
highlighted = computed this step
Exact fractional gain is allowed
A gain of one half maps 6 volts to 3 volts.
Vout=21⋅6V=3V
The declared rail limits the output
The unclipped result would be 8 volts, but the declared high rail is 5 volts.