Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - 日本語

Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Strings > isdigit

isdigit

文字列の文字が0と9の間の数値であるかどうかを調べる

呼び出し手順

res = isdigit(str)

パラメータ

str

文字列.

res

論理値の行列.

説明

res = isdigit(str) は str と同じ大きさの配列を返します. 配列の要素は,対応する str の要素が数値の場合に論理値%T (TRUE), それ以外の場合に論理値%F (FALSE)となります.

s = 'A1,B2,C3';
isdigit(s)
<< isascii Strings isletter >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:25:13 CET 2011