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 >> Funções Elementares > Ponto flutuante > ieee

ieee

ajusta o modo de exceção de ponto flutuante

Seqüência de Chamamento

mod=ieee()
ieee(mod)

Parâmetros

mod

escalar inteiro com possíveis valores 0,1,ou 2

Descrição

ieee() retorna o modo de exceção de ponto flutuante corrente

0

exceção de ponto flutuante produz um erro;

%inf and %nan special values can be used in this mode without error. For instance, %inf/%inf, %inf-%inf or %inf/%nan are known operations.

1
>exceção de ponto flutuante produz um aviso.
2
exceção de ponto flutuante produz um Inf ou NaN ("infinito" ou "não é número").

ieee(mod) sets the current floating point exception mode to mod.

The default initial mode is 2. This default value may be set in any of the following ways:
  • Through the Preferences GUI: preferences, in the section General => Environment => ieee.
  • Equivalently, using setPreferencesValue as follows (to set the mode to 1) :

    setPreferencesValue("//general/body/environment", ["fpe";"1"])

  • Or by using ieee(mod) in your startup file.
Exceções de ponto flutuante emergentes em alguns algoritmos de bibliotecas ainda não são manipuladas pelos modos ieee.

Exemplos

ieee(1);1/0
ieee(2);1/0,log(0)

Ver também

  • %nan — not-a-number
  • %inf — infinity
  • isinf — tests for infinite elements
  • isnan — verifica entradas NaN ("não é um número")
  • number_properties — determina parâmetros de ponto flutuante

Histórico

VersionDescription
6.0.0 O valor de modo incial é 2.
Report an issue
<< frexp Ponto flutuante int >>

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:35 CET 2018