'Near perfect' or 'Nearly perfect'

Hi

Is it near perfect or nearly perfect?

1- His math result is near perfect.
2: His math result is nearly perfect.

Tom

.
Both are fine. Near is both an adjective and an adverb.
.