Re: [racket] Decimal rounding problem

2012-11-29 Thread Greg Graham
Thank you to everyone who weighed in on the topic; the discussion has been very informative and interesting. I've decided to not do the rounding in Racket, but to store all of the digits in the database. The rounding will occur at the time of display by either Crystal Reports or Excel, which is

[racket] Decimal rounding problem

2012-11-29 Thread Greg Graham
I am trying to report GPA calculation results to 2 decimal places, so I thought real->decimal-string would do the trick. However, the following behavior surprised me: > (real->decimal-string 3.225 2) "3.23" > (real->decimal-string 4.225 2) "4.22" I would like the second answer to be "4.23", whi

Re: [racket] Losing decimal in SQL Server query result

2012-11-01 Thread Greg Graham
se I do to help you with your testing. -Greg -Original Message- From: Ryan Culpepper [mailto:r...@cs.utah.edu] Sent: Wednesday, October 31, 2012 9:05 PM To: Greg Graham Cc: users@racket-lang.org Subject: Re: [racket] Losing decimal in SQL Server query result ODBC claims to only support

[racket] Losing decimal in SQL Server query result

2012-10-31 Thread Greg Graham
Hello everyone, I attempting to use the Racket db interface to access a Microsoft SQL Server 2005 database. The field "creditaward" is defined as numeric(19,7), and in the case of the following query, I should get a value of 1.25 rather than 1. Anyone have an idea how I get to the fractional pa

Re: [racket] Considering taking the plunge

2012-10-11 Thread Greg Graham
Thanks to everyone for all of the encouragement and tips. I'll go for it and let you know how it goes. -Greg Racket Users list: http://lists.racket-lang.org/users

[racket] Considering taking the plunge

2012-10-11 Thread Greg Graham
adsheet I need using Microsoft's SpreadsheetML XML schema. So, do you think this is a crazy idea or not? Greg Graham Director of Administrative Technology Cistercian Preparatory School 3660 Cistercian Road Irving, TX 75039 469-499-5419 www.cistercian.org

Re: [racket] Delete Second

2012-09-17 Thread Greg Graham
Ashley, I think you're making this more difficult than it needs to be. -Greg -Original Message- From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of Ashley Fowler Sent: Monday, September 17, 2012 2:46 PM To: David Van Horn Cc: users@racket-lang.org Subj

[racket] Template Variables

2012-08-29 Thread Greg Graham
I am working the HtDP, and I have a question about Beginning Student Language description on http://docs.racket-lang.org/htdp-langs/beginner.html . Section 1.2 describes "Template Variables", which are a series of dots. Wh