You haven't provided much information to go on. You can pass values from a main report to a subreport using a shared variable. In the main report, create a formula like the following:
whileprintingrecords;
shared numbervar startval := {table.field1};
shared numbervar endval := {table.field2};
Place this somewhere on the the main report and suppress it if you like.
Then in the subreport, which must be located in a section below the one in which the shared variable is located in the main report, create a formula like the following:
whileprintingrecords;
shared numbervar startval;
shared numbervar endval;
if {sub.numberfield} in startval to endval then
totext({sub.numberfield},1,"") else //assuming one decimal
"*"+totext({sub.numberfield},1,"")+"*"
If you want more help, you should explain your main report group structure and how you are deriving the values you want to compare with the subreport values. You should also explain where the subreport is located and if there are any links, tell us what those are.
-LB