converting a signed float into unsigned float

D

Dipesh Batheja

I know this is simple, but i am unable to find how to do this. I have an
floating number and i want to convert it to unsigned floating number.
What do i have t do.
 
B

Bernard Kenik

----- Original Message -----
From: "Dipesh Batheja" <[email protected]>
Newsgroups: comp.lang.ruby
To: "ruby-talk ML" <[email protected]>
Sent: Wednesday, November 15, 2006 10:17 AM
Subject: converting a signed float into unsigned float

I know this is simple, but i am unable to find how to do this. I have an
floating number and i want to convert it to unsigned floating number.
What do i have t do.
fl_num = -1.456
fl_num = fl_num.abs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,831
Latest member
HealthSmartketoReviews

Latest Threads

Top