str2doublef

버전 1.1.0 (40.7 KB) 작성자: Kevin Gehringer
Fast approximate string to double parsing for real or complex numbers.
다운로드 수: 3
업데이트 날짜: 2022/5/28

라이선스 보기

Fast approximate string to double or complex parsing for %f and %e formatted numbers such as '25.423', '0.0069', '+1.2', '-124.67', '2.0e-10', '6.02214076e23', and '23 + -5i', 'i', 0 + -i', '-25e+5 + -5e-2i', '10i', '5i-2', '2 +76i', etc. For complex numbers the relevant numeric substrings may appear in either a real then imaginary or imaginary then real order. Parsing is performed from right to left and issues related to overflow, underflow, and potential loss of precision are ignored. The intent is to provide a fast and relatively accurate means of parsing formatted real or complex numbers in a %f or %e format, represented as strings of characters, for a broad range of values, but not an attempt to get the maximum precision for the machine representation of a double precision numeric value from a string.

인용 양식

Kevin Gehringer (2024). str2doublef (https://www.mathworks.com/matlabcentral/fileexchange/112345-str2doublef), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2022a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0

Fixed an error in the test data generation function and fixed a few typos.

1.0.0