> Is it possible to convert a scalar type statistic to int/double? I want to > use it in a 'log' function which needs a float/double parameter. > Please let me know if there is any other way.
Generally speaking, the values stored in statistic should only ever be used for stats, and if you want to use that value in some other way, you should create a separate variable and use it. That said, there is a mechanism for getting the current stat value. Just call stat.value(), and you'll get the current counter value. Be warned that this does not work with binning, and is not guaranteed to work in future releases. (Though we did get rid of binning in 2.0, and it will work in 2.0) Nathan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ m5sim-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/m5sim-users
