Formula for full price (dirty price) of bond

In the Schweser it is written as par * (1 + YTM) ^ t/T. But in the Schweser example it is using value of bond on last coupon date instead of par in the formula.