>> Tó fazendo um programa cujo output é um número, como faço para q o programa arredonde ele para um número natural (inteiro):???
>> abrsss
Bem, não sei se o que você está fazendo no momento pede conversao de
real pra inteiro, existe algumas funções prontas pra isso,
por exemplo:
http://docs.plt-scheme.org/reference/numbers.html#(def._((quote._~23~25kernel)._round))
http://docs.plt-scheme.org/reference/numbers.html#(def._((quote._~23~25kernel)._ceiling))
http://docs.plt-scheme.org/reference/numbers.html#(def._((quote._~23~25kernel)._floor))
Porém, tenho um grau de certeza bem grande que a parte que você está
no livro não pede absolutamente nada disso, então acho que você está
indo pelo caminho errado.
--
Eduardo Bellani
“What is hateful to you, do not to your fellow men. That is the entire
Law; all the rest is commentary.” The Talmud
ceiling : http://docs.plt-scheme.org/reference/numbers.html#(def._((quote._~23~25kernel)._ceiling))
floor : http://docs.plt-scheme.org/reference/numbers.html#(def._((quote._~23~25kernel)._floor))