Dollar sign in self checking activity

I am doing an activity on rounding to the nearest cent, I would like to have the dollar sign be there for the students, but everytime I try it, it marks it as wrong. Here is the code I have for correct. Any help would be great

correct = input1.submitted and input1.latex = \$10.46
correct: correct

initialLatex: \$

Try this in the math input CL:

initialLatex: “$”
correct:input1.numericValue =10.46

Without the errorMessage, you get a warning in the input field, but the code still works. The errorMessage is to remove the “cannot evaluate expression” warning.

This worked perfect, thank you!