Expression Evaluation DotNet

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Expression Evaluation DotNet

    Hi,

    I would like to convert a string such as "(3+2)/4" and return
    the answer.
    But I want the user to be able to type in the formula into a textbox
    and have the ASPX convert that string value into a mathematical expression
    and return the calculated value

    tx

    yoav
    [email]brav@brav.co.il[/email]
    Yoav Brav Guest

  2. Similar Questions and Discussions

    1. #39641 [NEW]: Expression evaluation violates intuition
      From: netex at 163 dot com Operating system: FreeBSD 6.1 PHP version: 5.2.0 PHP Bug Type: Variables related Bug description:...
    2. Evaluation Period
      I thought the evaluation period is 6 weeks. But now second week into my evaluation period, it tells me to switch to developer edition. Why? I'm...
    3. Evaluation Expiration
      How can I find out how much time remains on my Windows 2003 server evaluation. It is a 180 day evaluation, but I've re-installed it a couple of...
    4. Evaluation upgrade
      We have been using the evaluation copy of windows 2003 for some time now. The evaluation period ran out a few days ago. We have purchased a retail...
    5. Unixware Evaluation
      On Sat, Jul 19, 2003 at 08:45:06PM +0100, Graham Wharton wrote: Perhaps you might get some ideas here: http://www.opensource.org/sco-vs-ibm.html...
  3. #2

    Default Re: Expression Evaluation DotNet

    don't know if asp.net's got any special way for this, but i'd break the
    expression up and parse through it, it's not that simple with things like
    BODMAS ordering etc...

    a binary tree's probably the easist structure to use.

    "Yoav Brav" <brav@brav.co.il> wrote in message
    news:bca415d7.0307250253.4bdb3b58@posting.google.c om...
    > Hi,
    >
    > I would like to convert a string such as "(3+2)/4" and return
    > the answer.
    > But I want the user to be able to type in the formula into a textbox
    > and have the ASPX convert that string value into a mathematical expression
    > and return the calculated value
    >
    > tx
    >
    > yoav
    > [email]brav@brav.co.il[/email]

    Daniel Bass Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139