From: Sascha H. <sa...@xm...> - 2011-04-03 23:25:52
|
If this works, you should be also able to do this with double (replace .f with .d and truncf with tunc). On Mon, Apr 4, 2011 at 1:17 AM, Panayotis Katsaloulis < pan...@pa...> wrote: > > On Apr 4, 2011, at 2:02 AM, Arno Puder wrote: > > > > > actually, > > > > result == a - truncf(a / b) * b. > > > > <xsl:template match="dex:rem-float|dex:rem-float-2addr"> > > <xsl:text> _r</xsl:text> > > <xsl:value-of select="@vx"/> > > <xsl:text>.f = _r</xsl:text> > > <xsl:value-of select="@vy"/> > > <xsl:text>.f - truncf(_r</xsl:text> > > <xsl:value-of select="@vy"/> > > <xsl:text>.f / _r</xsl:text> > > <xsl:value-of select="@vz"/> > > <xsl:text>.f) * _r</xsl:text> > > <xsl:value-of select="@vz"/> > > <xsl:text>.f;&nl;</xsl:text> > > </xsl:template> > > > > Panayotis: can you please add this to the ObjC stylesheet and I will do > > this for the C stylesheet (I have some other uncommitted changes so it > > is not convenient for me to commit). > > > > Arno > > > No problem > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users > |