Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Inteiros > iconvert

iconvert

conversão para representação inteira de 1 a 8 bytes

Seqüência de Chamamento

y = iconvert(X, itype)

Parâmetros

X

matriz de números decimais ou inteiros codificados. Os números complexos não são aceitos

y

matriz de inteiros codificados em 1, 2, 4 ou 8 bytes

Descrição

Converte e armazena dados para inteiros de 1, 2, 4 ou 8 bytes.

itype=0

retorna números em ponto flutuante

itype=1

retorna números int8 no intervalo [-128,127]

itype=11

retorna números uint8 no intervalo [0,255]

itype=2

retorna números int16 no intervalo [-32768,32767]

itype=12

retorna números uint16 no intervalo [0, 65535]

itype=4

retorna números int32 no intervalo [-2147483648,2147483647]

itype=14

retorna números uint32 no intervalo [0, 4294967295]

itype=8

retorna números int64 no intervalo [-9223372036854775808,9223372036854775807]

itype=18

retorna números uint64 no intervalo [0, 18446744073709551616]

Exemplos

b = int32([1 -120 127 312])
y = iconvert(b,1)

Ver Também

  • double — converts inttype integers or booleans into decimal encoding
  • inttype — tipos de dados inteiros
Report an issue
<< Inteiros Inteiros int8 >>

Copyright (c) 2022-2023 (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:
Mon Feb 12 19:58:38 CET 2018