NValues

You can assign values to NValues:

Be sure to use SetDelayed, otherwise the left-hand side of the transformation rule will be evaluated immediately, causing the head of N to get lost. Furthermore, you have to include the precision in the rules; MachinePrecision will not be inserted automatically:

Mathics will gracefully assign any list of rules to NValues; however, inappropriate rules will never be used: