Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Programmazione > [PROGRAMMAZIONE] Metodo trasformazione
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
kingolo
.novellino.

User info:
Registered: Apr 2004
Posts: 3 (0.00 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 0:16:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Unhappy Ijvm Aiutoooooo

ragazzi dovrei fare un programma in ijvm...ossia dovrei fare un nuovo metodo "ftoi" che mi trasforma numeri floating point in numeri interi...chi mi puo aiutare?!?!

05-05-2004 14:13
Click Here to See the Profile for kingolo Click here to Send kingolo a Private Message Find more posts by kingolo Add kingolo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yoruno
.grande:maestro.

User info:
Registered: Jul 2003
Posts: 10602 (1.29 al dì)
Location: Altrove
Corso: 404 error
Anno: 404 error
Time Online: 123 Days, 2:50:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

A che corso è relativo questo codice che devi sviluppare?

__________________
"Voi che tingete i mari del colore dello zinco, che tramutate i boschi in gialli deserti, i venti in fumi di polveri da sparo e che bruciate i cieli. Voi che volete ripetere i malvagi atti della sconsiderata Lilith, che fu la prima moglie di Adamo e poi la sposa del Diavolo. Voi che volete ripetere la ribellione scatenata da Lucifero, del mondo celeste il più splendente. Voi! Ascoltate l'afflizione della sottospecie alata che vola alta nel cielo." [Angel Sanctuary]
::: mail: yoruno@dsy.it ::: ::: My Site ::: ::: Dsy Photo Gallery ::: ::: DeviantART Gallery :::

05-05-2004 15:05
Click Here to See the Profile for yoruno Click Here to See the Blog of yoruno Click here to Send yoruno a Private Message Visit yoruno's homepage! Find more posts by yoruno Add yoruno to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kingolo
.novellino.

User info:
Registered: Apr 2004
Posts: 3 (0.00 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 0:16:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
:|

programmazione...non c'è nessuno che mi puo dare una dritta?

07-05-2004 01:43
Click Here to See the Profile for kingolo Click here to Send kingolo a Private Message Find more posts by kingolo Add kingolo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skilotto83
..Energia positiva...

User info:
Registered: Jun 2003
Posts: 1608 (0.20 al dì)
Location: Arconate
Corso: Informatica
Anno: LAUREATO!!!
Time Online: 15 Days, 6:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ma in ke senso skusa?
Un floating point è un numero in virgola mobile..ma nn x forza..(nel senso ke se vuoi in una variabile float ci metti un intero)...
Il metodo ke devi kreare ke fa??
Toglie l'eventuale parte decimale e se ne frega oppure fa una approsimazione x eccesso o difetto?
Se devi approssimare è piu' complicato....ma neanke molto..bisogna controllare ogni posizione da dx a sx del numero float,che per esempio metti in un array, se il num in posizizioneN è maggiore di 5 aumenti in num in posizioneN-1, poi cancelli il num in posizione...e procedi cosi' di seguito(a grandi linee, ma ci sono altre cose)..
Altrimenti puoi fare un cast.. semplicemente e ti toglie la parte decimale..
Ma devi sapere cosa deve fare il metodo..
:D

__________________
"Why, Sir, you find no man at all intellectual who is willing to leave London.
No, Sir, when a man is tired of London, he is tired of life; for there is in London all that life can afford."
(DR SAMUEL JOHNSON 1777)

MSN andrea.poretti(at)hotmail.it

09-05-2004 12:50
Click Here to See the Profile for Skilotto83 Click here to Send Skilotto83 a Private Message Find more posts by Skilotto83 Add Skilotto83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skilotto83
..Energia positiva...

User info:
Registered: Jun 2003
Posts: 1608 (0.20 al dì)
Location: Arconate
Corso: Informatica
Anno: LAUREATO!!!
Time Online: 15 Days, 6:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Kmq dovrebbero esserci 2 funzioni native di java che lo fanno...una prende la parte intera..l'altra fa tutto lei e restituisce l'intero approssimato...
Anke perkè facendo km ti ho detto bisogna tener conto che il float puo' essere negativo, e cambi tutto..e poi in un float puo' starci anche una lettera...tipo 123,45e7...
Mah...

__________________
"Why, Sir, you find no man at all intellectual who is willing to leave London.
No, Sir, when a man is tired of London, he is tired of life; for there is in London all that life can afford."
(DR SAMUEL JOHNSON 1777)

MSN andrea.poretti(at)hotmail.it

09-05-2004 13:13
Click Here to See the Profile for Skilotto83 Click here to Send Skilotto83 a Private Message Find more posts by Skilotto83 Add Skilotto83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kingolo
.novellino.

User info:
Registered: Apr 2004
Posts: 3 (0.00 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 0:16:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Eccomi

devo implementare il metodo "ftoi" in IJVM o MAL, (io ho scelto ijvm perche credo sia piu facile), per
la conversione in integer del numero passato come Floating Point standard
IEE 754.
Ad esempio, itof(0x42240000) restituisce in TOS il valore 0x29

Help meee!!

09-05-2004 19:59
Click Here to See the Profile for kingolo Click here to Send kingolo a Private Message Find more posts by kingolo Add kingolo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:17.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.145 seconds (67.00% PHP - 33.00% MySQL) con 26 query.