BCB Components rotating around DirectX

Welcome to BCB-Tools.com Latest News

Development Tools Demo Applications Step-By-Step Tutorials Component Reference

Register Here Available Downloads

Frequently Asked Questions Discussion Forums Receive emails from BCB-Tools.com Send us some Feedback

Links to other sites Information about the BCB-Tools.com website


    FORUM MESSAGE
    Go to the Welcome Page
        FORUM MESSAGE

    You are reading a General forum message.

    Re: Postings In This Forum

    Author: Israel Luengo

    Date Posted: 2004-12-17 08:32:03



    Really this isn't related to the Bcb tools Library

    it's for numeric representation of flotating point values

    Well, we can suppose that we have our appz ....for example a engine 3d or a 2d buffering page flipping (also it can be a audio editor)

    the dude is:  hmmmm...the damn flotating values....really, i have a lot of problems with this

    for numeric formatting....C++ Builder have the follow function

    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    How formatting a number with million and thousand points and decimal separator
    2 ways...the first, if we need convert the number formatting....and also convert a string to number.
    .
    .
    //first we convert the string to float an after...put the point
    .
    .
    FormatFloat("#.##",StrTOFloat(Numero));
    .
    .
    .
    //Otherwise. we suppose we have a float variable and only formatting the number
    .
    .
    float Number_of_anything;
    FormatFloat("##,###,###.##", Number_of_anything);
    ...
    .....
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    PD. I whish the people knows to appreciate this kind of thing....it seems a fool thing....but...hehhe ;))

    Good Luck
    Israel




    REPLY TO THIS MESSAGE?
    Top    

    You can post a reply to this General message using the form below:
    Your Name:


    Message Subject:


    Message Body:


    Verification:





    When ready, click on the submit button below:






Top

Welcome |  Latest News |  Tools |  Demos |  Tutorials |  Reference |  Register |  Downloads
FAQ |  Forums |  Feedback |  Mailing List |  Links |  Site Information

This page is Copyright © 2007 Darren John Dwyer, Australia. All Rights Reserved.
Borland C++ Builder, CBuilder, etc are Trademarks of Borland Corporation.
DirectX, DirectDraw, Windows, etc are Trademarks of Microsoft Corporation.