%% Convert Single-Precision Number
% Create a single-precision number.

X = single(2.7182818)

%
% Convert X. The num2hex function represents a single-precision number using only eight hexadecimal digits.

hexStr = num2hex(X)

% Copyright 2019 The MathWorks, Inc.