About: FloatToInt   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The FloatToInt() NWScript command converts a float to an integer. The fractional part of the float is discarded (not rounded to the nearest integer as would be implied by the internal documentation). To get a float rounded to the nearest integer, add 0.5 before the conversion.

AttributesValues
rdfs:label
  • FloatToInt
rdfs:comment
  • The FloatToInt() NWScript command converts a float to an integer. The fractional part of the float is discarded (not rounded to the nearest integer as would be implied by the internal documentation). To get a float rounded to the nearest integer, add 0.5 before the conversion.
  • function FloatToInt (float fFloat) Convert fFloat into the nearest integer. * Return type: int * Include file: nwscriptdefn
  • The function actually rounds towards zero, not to the nearest integer (at least in OC v1.23).
dcterms:subject
dbkwik:nwn2/proper...iPageUsesTemplate
returns
Name
  • FloatToInt
param
  • float fFloat
param1desc
  • The floating point number that will be converted to an integer.
dbkwik:nwn/property/wikiPageUsesTemplate
abstract
  • The FloatToInt() NWScript command converts a float to an integer. The fractional part of the float is discarded (not rounded to the nearest integer as would be implied by the internal documentation). To get a float rounded to the nearest integer, add 0.5 before the conversion.
  • function FloatToInt (float fFloat) Convert fFloat into the nearest integer. * Return type: int * Include file: nwscriptdefn
  • The function actually rounds towards zero, not to the nearest integer (at least in OC v1.23).
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software