Re: [WebDNA] drop off not round off

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106515
interpreted = N
texte = Another of many solutions=85. [text]x=3D0.6649[/text] [math](floor([x]*1000))/1000[/math] The "floor" math function truncates to an integer value, so multiply by = 1000 to move the decimal to the right 3 places, take the floor of that, = then divide by 1000 to put the decimal back where you want it. Brian On Apr 13, 2011, at 6:45 AM, William DeVaul wrote: > [grep search=3D(.*)[0-9]&replace=3D\1][the_value][/grep] >=20 > This should drop the last number in your example. The grep in WebDNA = is somewhat limited in version 6. Not sure about version 7 or later.=20 >=20 > Bill >=20 > On Tue, Apr 12, 2011 at 5:24 PM, sgbc cebu wrote: > Hi, >=20 > How to > use actual numbers (1) > to get wished results (3) > of .407 and not .408 > in webdna? > Intend to "dropped off" some digits not "round off"=20 >=20 >=20 >=20 > 123 > Actual > NumbersDNA > [Format 3f]Wished > Result > 0.66490.6650.664 > 0.25710.2570.257 > 0.40780.4080.407 >=20 > Thanks, > Jess >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] drop off not round off (Govinda 2011)
  2. Re: [WebDNA] drop off not round off (sgbc cebu 2011)
  3. Re: [WebDNA] drop off not round off (Scott Walters 2011)
  4. Re: [WebDNA] drop off not round off (Brian Fries 2011)
  5. Re: [WebDNA] drop off not round off (William DeVaul 2011)
  6. Re: [WebDNA] drop off not round off (Govinda 2011)
  7. [WebDNA] drop off not round off (sgbc cebu 2011)
Another of many solutions=85. [text]x=3D0.6649[/text] [math](floor([x]*1000))/1000[/math] The "floor" math function truncates to an integer value, so multiply by = 1000 to move the decimal to the right 3 places, take the floor of that, = then divide by 1000 to put the decimal back where you want it. Brian On Apr 13, 2011, at 6:45 AM, William DeVaul wrote: > [grep search=3D(.*)[0-9]&replace=3D\1][the_value][/grep] >=20 > This should drop the last number in your example. The grep in WebDNA = is somewhat limited in version 6. Not sure about version 7 or later.=20 >=20 > Bill >=20 > On Tue, Apr 12, 2011 at 5:24 PM, sgbc cebu wrote: > Hi, >=20 > How to > use actual numbers (1) > to get wished results (3) > of .407 and not .408 > in webdna? > Intend to "dropped off" some digits not "round off"=20 >=20 >=20 >=20 > 123 > Actual > NumbersDNA > [Format 3f]Wished > Result > 0.66490.6650.664 > 0.25710.2570.257 > 0.40780.4080.407 >=20 > Thanks, > Jess >=20 >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us Brian Fries

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Two stores one db (2011) Virtual hosting and webcatNT (1997) WebCat2 beta 11 - new prefs ... (1997) switching users (1998) all records returned. (1997) [WebDNA] IIS 6.1 Win 7 (2013) Webmessage Hyperboard (1998) Calculating multiple shipping... (1997) Shared conversion under WebTen (1998) WebDNA Solutions ... sorry! (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [WebDNA] SQL with Webdna - good ideas? (2018) Files not moved to EmailCompleted (2002) [TaxableTotal] - not working with AOL and IE (1997) listfiles-looking for slick solution (1997) Separate SSL Server (1997) Database Strategy - more... (1998) Setting up WebCatalog with Retail Pro data (1996) Interfacing WebMerchant to www.fedex.com (1997) Shopping problems with 2.1b3 acgi (1997)