We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Mapping long oppose to float
Page Index Toggle Pages: 1
Mapping long oppose to float (Read 698 times)
Mapping long oppose to float
Apr 26th, 2010, 11:11am
 
Does the map function only converts to float? I'm trying to map long numbers.

float dateRange = map (epoch, -220898880, 1267246800, 20, 984);
Re: Mapping long oppose to float
Reply #1 - Apr 26th, 2010, 2:00pm
 
Unless I am mistaken, longs fit in float numbers. You just have to convert them back to long after.
Page Index Toggle Pages: 1