Text this: Design of an all-optical quaternary encoder to code decimal numbers by utilizing optical Kerr nonlinear material