Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.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 4 bytes

Seqüência de Chamamento

y=iconvert(X,itype)

Parâmetros

X

matriz de floats ou inteiros

y

matriz de inteiros codificados em 1, 2 ou 4 bytes

Descrição

Converte e armazena dados para inteiros de 1, 2 ou 4 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]

Exemplos

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

Ver Também

  • double — conversão de inteiro para representação de dupla precisão
  • 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:
Thu Oct 02 13:57:42 CEST 2014