Answer:
To the nines: to perfection or to the highest degree.
Step-by-step explanation:
The phrase "dressed to the nines" is just a specific application of the Scottish phrase "to the nine " The earliest written evidence of this phrase appeared in the late 18th century in the poetry of Robert Burns. Its meaning is "to perfection; just right." The Scottish National Dictionary speculates that the phrase is derived from the game of ninepins, but this connection is not at all clear.