Duncan, On 25 March 2012 15:28, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > In case anyone is interested, I want to output code in a language (GLSL) > that sees 1 and 1. as different types. I want a floating point value, so I > need the decimal point.
GLSL, assuming it's the one that I'm looking at[1], supports implicit conversion from integer to float by appending ".0" to the end. -- Sent from my mobile device Envoyait de mon portable 1. http://www.opengl.org/wiki/GLSL_Types#Implicit_conversion ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.