function bug ?
Blitz3D Forums/Blitz3D Programming/function bug ?| 
 | ||
| Hi I seek a bug with function. Example: Function Newton( m# ) Local F#=m * 9.81 Return F End Function Ok, for example m=12.142 and in blitz3d print me a 119 but in my calculator i have a 119.11302 Where is .11302 ? Help Leszek | 
| 
 | ||
| Function Newton#( m# ) Local F#=m * 9.81 Return F End Function | 
| 
 | ||
| Functions return integers by default. You need to use 'Function Newton#(m#)' instead. [edit] beaten to it. | 
| 
 | ||
| Not really. He gave the code + you the explanation = documentation. | 
| 
 | ||
| @kryzon + explanation of obvious documentation + leon drake trolling = successful thread |