I posted a very fast function a while ago in this thread in the FAT engine board: http://pub26.ezboard.com/ftichessteamhqfrm9.showMessage?topicID=62.topic You can increase the accuracy, but it will require quite a bit of work, and you'll need to understand how it works. But anyway, the binary search method suggested in the same thread might be even better. Sebastian Reichelt