Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > converting a signed float into unsigned float

Reply
Thread Tools

converting a signed float into unsigned float

 
 
Dipesh Batheja
Guest
Posts: n/a
 
      11-15-2006
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.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Bernard Kenik
Guest
Posts: n/a
 
      11-16-2006

----- Original Message -----
From: "Dipesh Batheja" <(E-Mail Removed)>
Newsgroups: comp.lang.ruby
To: "ruby-talk ML" <(E-Mail Removed)>
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(int) -> (unsigned) -> (int) or (unsigned) -> (int) -> (unsigned):I'll loose something? pozz C Programming 12 03-20-2011 11:32 PM
Convert a signed binary number into a signed one ? Rob1bureau VHDL 1 02-27-2010 12:13 AM
float to string to float, with first float == second float Carsten Fuchs C++ 45 10-08-2009 09:47 AM
Converting float to 32bit signed Integer value? (newbie) MangoMan Python 1 10-11-2003 05:34 PM
Re: float->byte->float is same with original float image. why float->ubyte->float is different??? bd C Programming 0 07-07-2003 12:09 AM



Advertisments